gpt4 book ai didi

mysql - 另一列的值如何包含主键的值?

转载 作者:行者123 更新时间:2023-11-29 07:54:20 24 4
gpt4 key购买 nike

我想将主键的值包含到另一列

例如)

enter image description here

但我不知道该怎么做。

有有效的方法吗?

最佳答案

您可以使用CONCAT_WS :

UPDATE
myTable
SET
another_column =
CONCAT_WS("_", another_column, id)

关于mysql - 另一列的值如何包含主键的值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25543704/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com