sql 多条数据插入

1、使用select语句插入数据

  insert into a(列1,列2……)select (列1,列2……)from b where 条件

  注意:表a和表b必须不同,并且没有values关键字

2、使用select ……into插入数据

  select * into b from a where 条件

  注意:表b必须是不存在的

当视图是由单表创建,则可进行添加和更新操作!  

posted on 2011-03-14 23:20  穆穆  阅读(611)  评论(0)    收藏  举报