0 THEN .QUIT" between each SQL. May be helpful. Thanks." />
|
Archives of the TeradataForumMessage Posted: Tue, 11 Nov 2008 @ 11:21:17 GMT
Hi, I think here your code is submitting "Multi Statement Transaction" and that's the reason TERADATA is throwing this error. SQL-1 : SQL will throw error mentioned below. CREATE SET TABLE temp_ml( col1 char(4) ) PRIMARY INDEX XPKtemp_ml (col1); sel * from temp_ml; SQL-2 : SQL will work fine (in two different statement) CREATE SET TABLE temp_ml( col1 char(4) ) PRIMARY INDEX XPKtemp_ml (col1); sel * from temp_ml; You need to split the sql from Multi Statement Transaction to Single Statement. Just try to use ".IF ERRORCODE > 0 THEN .QUIT" between each SQL. May be helpful. Thanks. Best Regards, Kapil Dev Sapra
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||