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.
UPDATE table SET column = **`insert in front of original data`** WHERE condition
是否可以在前面或末尾插入数据? 还是必须重新重写?
如果我理解正确,column是包含字符串数据的列,并且您想在该列的当前值前面添加文本,对于满足条件的每条记录?
column
在这种情况下,只需执行以下操作:
UPDATE table SET column = 'my prepended text' || column WHERE condition