SELECT column_name, data_type FROM system.catalog WHERE table_name = 'datasource';
奉上了,就是这个sql语句可以用来查询,某个表的表结构,
这种常用的东西在百度上搜了一下竟然搜不到...大大的不好啊..应该很常用啊.记录一下吧
还可以连接上,然后用:
[aiprd@host-10-191-5-227 bin]$ ./sqlline.py 10.191.5.225,10.191.5.226,10.191.5.227:2181
Setting property: [incremental, false]
Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:10.191.5.225,10.191.5.226,10.191.5.227:2181 none none org.apache.phoenix.jdbc.PhoenixDriver
Connecting to jdbc:phoenix:10.191.5.225,10.191.5.226,10.191.5.227:2181
18/04/11 15:43:26 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Connected to: Phoeni