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.
我有一个包含名称列表的数据库,但这些名称包含空格并且大写。如何在每行中复制名称并将其放回每一行但在不同的列中(比如说“name_url”),在它们被小写并用下划线替换空格之后?
这里,
UPDATE TableName SET destinationCOlumn = LOWER(REPLACE(sourceColumn, ' ', '_'))