posts - 45,  comments - 63,  trackbacks - 1
insert into department(dptName) select distinct edpt from employee

上面这句sql语句的作用: 把employee表中edpt列的不重复记录查询出来,然后复制到department表中

keywords:sql,某一列复制到另一个表,列复制,列复制到,复制列

posted on 2008-03-26 23:13 Kenny tian 阅读(1337) 评论(3) 编辑 收藏