如果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刪除。