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.
尝试将值插入特定字段。目前正在尝试这样的 MySQL 查询;
INSERT INTO tablename (*column-name-col2+*) VALUES 500 WHERE (idcolumn) = X
有人建议吗?
当前表格布局:
IDCol | username1 | username2 | username3 | etc 1 2 3 4
您需要使用UPDATE添加到表中已创建的行中,所以我认为您的代码应该是
UPDATE
UPDATE tablename SET columnName='500' WHERE IDCol='X'