Quantcast
Channel: SCN: Message List - SAP Advantage Database Server
Viewing all articles
Browse latest Browse all 997

Multiple record insert - Sql - ALS11

$
0
0

Hi, I'm tried to do a multi record insert in one simple sql instruccions but doesn't workd

 

   INSERT into TTABLE1   (FIELD1, FIELD2, FIELD3)   values   (VALUE1, VALUE2, VALUE3),  (VALUE21, VALUE22, VALUE23),  (VALUE31, VALUE32, VALUE33), 
 (VALUE1, VALUE2, VALUE3), (VALUE1, VALUE2, VALUE3), ( (VALUE1, VALUE2, VALUE3),VALUE1, VALUE2, VALUE3),

I get the error poQuery: Error 7200:  AQE Error:  State = 42000;   NativeError = 2117;  [iAnywhere Solutions][Advantage SQL Engine]Unexpected token: , -- Expecting semicolon. -- Location of error in the SQL statement is: 184 (line: 4 column: 70).

 

If I put semicolon get

 

poQuery: Error 7200:  AQE Error:  State = 42000;   NativeError = 2115;  [iAnywhere Solutions][Advantage SQL Engine]Expected lexical element not found: Your statement must start with CREATE, DROP, SELECT, INSERT, UPDATE, ALTER, EXECUTE, DELETE, GRANT, REVOKE, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, SET, DEBUG or a script statement.

 

If it possible in ADS, do a multi records insert in one sql statement? How?.

 

Thnks


Viewing all articles
Browse latest Browse all 997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>