1、查询一个表中的数据插入到另外一个表中

insert into ERP_DB2.0.dbot_Authority(TypeID,AuthorityName,ModuleUrl,WebUrl,[Description]) select TypeID,AuthorityName,ModuleUrl,WebUrl,[Description]
from ERP_DB.dbo.t_Authority

加上数据库名,以防止数据插入到错误的数据库

2、向表中添加列

alter table teacher add attach_url datetime default ''

posted on 2013-03-30 22:41  siwei1988  阅读(192)  评论(0编辑  收藏  举报