达梦数据库使用的简单记录
达梦数据库的语法
查看建表语句
添加注释
记录超长问题解决方案
达梦数据库的语法
使用上与oracle类似
1.查看建表语句
select tabledef(‘模式名’,‘表名’)
添加注释
2.添加表注释
comment on table 表名 is ‘注释’
添加字段注释
alter table student add name varchar(200);
comment on column name is '简介';
comment on column 字段名 is ’ 注释 ’
3.记录超长问题解决方案
达梦数据库最大支持8000 超过会报错
解决方法
alter table student enable using long row;
在建表语句后添加 storage(using long row )可以解决