如果author_type的字段类型为varchar
用这个语句时会报错:在将 varchar 值 '言论' 转换成数据类型 int 时失败。
update author set author_type='简讯' where author_type=2
需要改为
update author set author_type='简讯' where author_type=‘2’
如果author_type的字段类型为varchar
用这个语句时会报错:在将 varchar 值 '言论' 转换成数据类型 int 时失败。
update author set author_type='简讯' where author_type=2
需要改为
update author set author_type='简讯' where author_type=‘2’
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。