bitscn.com mysql另一种插入语法(如果唯一冲突,则不插入,执行更新) insert into tbl_user_private_info (user_id, nick_name, sex, sub_type, device_type, tag) values( inuserid, innickname, insex, insubtype, indevicetype, intag) on duplicate key update nick_name=innickname, sex=insex, sub_type=insubtype, device_type=indevicetype, tag=intag; 作者 c++技术中心 bitscn.com
