lqxue

常用链接

统计

book

tools

最新评论

根据已有的表创建新表

创建新表:  
create table tabname(col1 type1 [not null] [primary key],col2 type2 [not null],..)  
根据已有的表创建新表:  
A:create table tab_new like tab_old  
B:create table tab_new as select col1,col2… from tab_old definition only  

posted on 2008-06-03 16:57 lqx 阅读(989) 评论(2)  编辑  收藏 所属分类: database

评论

# re: 根据已有的表创建新表 2008-06-03 17:26 懒人

你like完旧表以后,新表的字段和它的相关属性是不是直接搬过来了?  回复  更多评论   

# re: 根据已有的表创建新表 2008-06-03 19:50 me

对  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: