ddl

来源:互联网 发布:重庆java工程师招聘 编辑:程序博客网 时间:2024/06/01 19:38
1,rename 修改对象名字   表1--renmae
drop table t1; 

2,comment 加注释
emp--提示: ‘do not remove !!!’
comment on table emp is 'do not remove!!!'
给某列加注释
comment on column emp.empno is 'do not remove!'


3,truncate 清空表内数据
truncate table [tablename]
0 0
原创粉丝点击