0

次の出力を取得するとPeople、というテーブルがありますdescribe People

| Name | varchar(50)   | YES  |     | NULL    |

私のsqlupdateステートメント:

update Person set Name='xxx'  AND Age= '33' ;

エラー :

ERROR 1292 (22007): Truncated incorrect DOUBLE value: 'xxx'
4

2 に答える 2

2

何をしたいかによります。あなたのテーブルのすべてのために設定ageしてくださいname

update Person set Name='xxx', Age= '33'

またはdonameですべてに設定age=33

update Person set Name='xxx' WHERE Age= '33'
于 2012-08-02T09:50:10.000 に答える
1

以下のクエリを使用

update People set Name='xxx' , Age= '33' where condition;

于 2012-08-02T09:52:05.833 に答える