gpt4 book ai didi

mysql - 为每个 ID 创建新列

转载 作者:行者123 更新时间:2023-11-29 06:10:31 24 4
gpt4 key购买 nike

<分区>

假设我有一个表(约 100 万行)如下所示:

ID        
1
2
3
4
5
6
.
.
.

我想为 2014 年和 2015 年全年添加年和月列。所以输出变成:

ID  Year  Month
1 2014 1
1 2014 2
1 2014 3
. . .
. . .
. . .
1 2015 12
2 2014 1
2 2014 2
and so on so forth.

我该怎么做?谢谢

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