转自:https://blog.csdn.net/lx870576109/article/details/78336695

把每一个知识点进行积累:Oracle数据库中将查询一张表的结果添加到另一张表中

insert into material_tc(matno, mname, xlmname, lmname,tkdat,comdat,tc,id)

select a.matno, a.mname, a.xlnmame, a.demo2 ,11,11,11,1 from log_material a where a.matno='12000161';

语法:insert into 表名(列名,列名,列名...)select 列名,列名,列名... from 表名 where 条件=‘’;

执行结果:

 

相关文章:

  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2021-09-15
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2022-02-12
  • 2021-10-31
  • 2021-07-07
  • 2022-03-02
  • 2021-05-23
相关资源
相似解决方案