【发布时间】:2015-05-05 01:53:34
【问题描述】:
我发现使用 cqlsh 显示的字符串值是右对齐的。是否有一个原因?有没有办法让字符串左对齐?
cqlsh:test> create table test (id int, a ascii, t text, primary key(id));
cqlsh:test> insert into test (id, a, t) values (1, 'ascii', 'text');
cqlsh:test> insert into test (id, a, t) values (2, 'a', 't');
cqlsh:test> select * from test;
id | a | t
----+-------+------
1 | ascii | text
2 | a | t
(2 rows)
【问题讨论】:
-
是的,当您有一些非常长的值和一些非常短的值时,这很烦人。连续列中的数据之间存在巨大差距。