Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个名为的表People,当describe People我得到以下输出时
People
describe People
| Name | varchar(50) | YES | | NULL |
我的 sql 更新语句:
update Person set Name='xxx' AND Age= '33' ;
错误 :
ERROR 1292 (22007): Truncated incorrect DOUBLE value: 'xxx'
取决于你想做什么。设置age并name为你的桌子上的所有人做
age
name
update Person set Name='xxx', Age= '33'
或使用doname为所有人设置age=33
age=33
update Person set Name='xxx' WHERE Age= '33'
使用以下查询
update People set Name='xxx' , Age= '33' where condition;
update People set Name='xxx' , Age= '33' where condition