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.
在我的数据库中,我们有一个名为的列deleteList,其中包含逗号分隔的值。如何将值附加到数据库中的现有记录?
deleteList
如果要连接值,则需要第二次更新。
UPDATE tableName SET deleteList = CONCAT(deleteList, ',', 'NEWVALUE') WHERE colName = val
在哪里
NEWVALUE
colName