insert into A select * from B where not exists (select 1 from A where A.ID=B.ID)
insert when (not exists (select 1 from 表名 where 检验重复的条件)) then into 表名 values(相应的值)select 1 from dual
jiankunking 博主文章分类:数据库 ©著作权
insert into A select * from B where not exists (select 1 from A where A.ID=B.ID)
insert when (not exists (select 1 from 表名 where 检验重复的条件)) then into 表名 values(相应的值)select 1 from dual
介绍日志平台的clickhouse表引擎选择和表结构设计
问题: 查询一个表(tb1)的字段记录不在另一个表(tb2)中 条件:tb1的字段key的值不在tbl2表中 ---------------------- 最原始的写法: select  
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M