mysql语句插入前判断数据是否重复
摘要:
在mysql中插入数据有时需要判断数据插入是否重复 语句编写:insert into 表(相应字段) select 相应字段 from dual where not exists (select 相应字段 from 表 where 相应查询条件) eg: 阅读全文
posted @ 2019-03-05 16:51 蓝魂殇 阅读(2164) 评论(0) 推荐(0)
posted @ 2019-03-05 16:51 蓝魂殇 阅读(2164) 评论(0) 推荐(0)
posted @ 2019-03-05 16:32 蓝魂殇 阅读(652) 评论(0) 推荐(0)
posted @ 2019-03-05 16:17 蓝魂殇 阅读(127) 评论(0) 推荐(0)