Ksql --help
test=# \h
\h
.....
\c
显示当前test数据库的表和视图信息,+号显示详细信息
\dt+ 表名
\d 表名
\db+
\dn
\du
select * from sys_user;
select * from sys_roles;
\x
\copy 表名 to /导出文件的路径/文件名 导出文件的类型
\! cat /文件路径
\copy 表名 from /文件路径 文件类型
\i sql脚本路径
\c - user01
\conninfo
将登录的主机IP-账号-端口-和连接的数据库名
echo "export KINGBASE_PORT=54321">>/home/kingbase/.bash_profileecho "export KINGBASE_DATABASE=test">>/home/kingbase/.bash_profileecho "export KINGBASE_USER=system">>/home/kingbase/.bash_profilesource /home/kingbase/.bash_profile
退出KSQL命令行
\q
\di
上一篇:电机行业EDI案例分析
下一篇:深入浅出进程控制