要是想改跟用户名一样的schema可以这样写:set schema 名字。
也可以在控制中心,找到对应的数据库,再找到schema, 右击创建,最后一步是,点显示SQL,就可以看到怎么创建schema的语句了。
这是我在linux下命令,跟Ubuntu应该一样!你试试看!查看当前用户表:list tables
查看数据库定义所有表:list tables for all
查看指定模式表:list tables for schema <schema name>
查看当前用户名为模式表:list tables for schema
查看表结构:describe table <tablename>
创建:create table <schema name>.<table name>(<column name><type>) in <tablespace name>
例如:create table agent.test (id integer, name varchar(10)) in users
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)