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必须是不存在的

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

相关文章: