所以我有一张看起来像这样的表
+----+----------------------+--------------------------+----------+----------+
| id | fullname | email | username | password |
+----+----------------------+--------------------------+----------+----------+
| 1 | John Doe | johndoe@example.com | johndoe | password |
| 2 | Jane Doe | janedoe@example.com | janedoe | password |
+----+----------------------+--------------------------+----------+----------+
我想要做的是将“密码”更改为“1”。例如,在该查询之后,表格看起来像这样:
+----+----------------------+--------------------------+----------+----------+
| id | fullname | email | username | password |
+----+----------------------+--------------------------+----------+----------+
| 1 | John Doe | johndoe@example.com | johndoe | johndoe1 |
| 2 | Jane Doe | janedoe@example.com | janedoe | janedoe1 |
+----+----------------------+--------------------------+----------+----------+
我尝试UPDATE table SET password=username+"1" WHERE id=1;
,但这不起作用。这并不奇怪。
我该怎么做?