达梦数据库是一个国产数据库,建表的语法如下,需要在建立表空间的情况下建立模式,在模式下新建表。
create tablespace bookshop datafile 'bookshop.dbf' size 150;
建立模式
create schema person authorization sysdba;
create schema sales authorization sysdba;
建立表
create table sales.customer(customerid int identity(1,1) primary key,personid int not null references person.person(personid)) storage (on bookshop);