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
値を連結する場合は、2 回目のUPDATEが必要です。
UPDATE tableName SET deleteList = CONCAT(deleteList, ',', 'NEWVALUE') WHERE colName = val
どこ
NEWVALUE
colName