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 your_table set B = A
update your_table set B = A
但我想在前面添加一些数字
所以更像 update your_table set B = ('00',A)
update your_table set B = ('00',A)
update your_table set B = concat('00', A)
这代表了糟糕的关系数据存储实践。与其复制可能导致以后头疼的数据(您现在需要更新两列来更改一组数据),不如在检索时连接结果。