kingbase人大金仓在linux上常用命令

  1. 列出数据库:   \l

  2. 列出索引:      \di

  3. 列出表:       \dt

  4. 列出表结构:\d 表

  5. 查询数据大小写敏感: show case_sensitive

  6. 切换数据库: \c dbname

  7. 显示字符集:\encoding

  8. 退出:\q

  9. 查看所有存储过程(函数): \df

  10. 查看所有用户   \du

  11. 将名下的表指给某个用户:alter table 表名 owner to  指定用戶

  12. 创建普通用户:create user  用户名(用户名不带双引号,默认大写) with password '密码'; 若创建超级用户需要添加:with superuser password 'mm';

猜你喜欢

转载自blog.csdn.net/weixin_47385625/article/details/115295556