2015年4月30日

MySQL、You are using safe update mode

摘要: MySQL默认模式是sql_safe_updates=1的。在这个模式下不管你是update还是delete一行where 条件都要指定主键。如果where条件只出现的不是主键就会出错。例子: set sql_safe_updates =1;--开始安全更新、这个是我这个例子的前提。 --第一步... 阅读全文

posted @ 2015-04-30 12:49 蒋乐兴的技术随笔 阅读(859) 评论(0) 推荐(0) 编辑

导航