相关疑难解决方法(0)

为什么 cqlsh 右对齐字符串?

我发现使用 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)
Run Code Online (Sandbox Code Playgroud)

cql cassandra cqlsh

4
推荐指数
1
解决办法
821
查看次数

标签 统计

cassandra ×1

cql ×1

cqlsh ×1