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 阅读(94) 评论(2)  编辑  收藏 所属分类: database

评论

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

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

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

对  回复  更多评论   


标题  
姓名  
主页
验证码 *  
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
 
 

相关链接:
网站导航: