有一个字段定义:getsum int(11) unsigned default '0'mysql 5.0.75-log下执行
update items set getsum=-1
不报错
mysql 5.1.36-community下执行
update items set getsum=-1
报错mysql 5.0.75-log是公司服务器上 的数据库
mysql 5.1.36-community是本机的数据库
可是我程序里是需要用到报错的,可是mysql 5.0.75-log不报错,请问怎么办呢
update items set getsum=-1
不报错
mysql 5.1.36-community下执行
update items set getsum=-1
报错mysql 5.0.75-log是公司服务器上 的数据库
mysql 5.1.36-community是本机的数据库
可是我程序里是需要用到报错的,可是mysql 5.0.75-log不报错,请问怎么办呢
SELECT @@SESSION.sql_mode;
STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION