将row_number插入表(teradata)

时间:2019-08-01 22:53:56

标签: insert teradata row-number

我正在尝试将标识列添加到已创建的表中。我一直在使用的解决方案是插入行号

INSERT INTO MKTcampaign_ism.temptable
SEL 
ROW_NUMBER() OVER (ORDER BY clubcode, campaigncode, region)
FROM MKTcampaign_ism.GO_Upgrade_Campaign_Ref

查询失败:
3706 syntax error expected something between the beginning of the request and the word insert into MKTcampaign_ism

0 个答案:

没有答案