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

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

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-25
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-08-31
  • 2021-06-26
相关资源
相似解决方案