详细内容
mysql表里新增记录时判断是否已存在
发布日期:2018-06-01     点击:2458     字体:[ ]

mysql表里新增记录时判断是否已存在,如果存在则不新增,不存在则新增

 

insert into ta(c1,c2,c3,c4,c5)
select 'xx',3,4,'ee','ww'  from ta where ta.c1!='xx' and ta.c2!=3 and ta.c3!=4

用户评论
昵称 
内容  *
验证码   
   
Copyright © 2010 zdbase.com All Rights Reserved. 苏ICP备15039389号 可人软件设计