我希望在alter query的帮助下在existng表中添加多个列。
ALTER TABLE users.UM_REG_HPTL_DET_DOC
ADD column HPTL_TADDRESS3 vargraphic(50),
ADD column APPLICANT_ADDRESS3 varchar(50),
ADD column APPLICANT_TADDRESS3(50),
ADD column aadhar_no varchar(12),
ADD column Registration_no varchar(50);
比那个错误
在“RESS3 vargraphic(50)”之后发现了意外的标记“,”。预期的令牌可能包括:“”.. SQLCODE = -104,SQLSTATE = 42601,DRIVER = 4.18.60
答案 0 :(得分:6)
删除","而不是运行
ALTER TABLE users.UM_REG_HPTL_DET_DOC
ADD column HPTL_TADDRESS3 vargraphic(50)
ADD column APPLICANT_ADDRESS3 varchar(50)
ADD column APPLICANT_TADDRESS3(50)
ADD column aadhar_no varchar(12)
ADD column Registration_no varchar(50);