visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
294 experts, 1172 registered users, 1625 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


The DDRK link is back online.
We got a one week service interruption, sorry.
(23-30/01/2010)

Databases :: Oracle :: How to insert multiple rows in one INSERT statement in Oracle ?


By: VGR France  Date: 10/04/2008 10:05:39  English  Points: 0 Status: Answered
Quality : Excellent
Easy. You can't ;-)
(at least with a 9.2.0 version)

SQL> insert into stat_prod values (1,100861,10,1102.55,'Vente','10/01/2000'),(1,1,1,NULL,'',NULL),(1 ,102130,5,500,NULL,'20/01/2000'); insert into stat_prod values (1,100861,10,1102.55,'Vente','10/01/2000'),(1,1,1,NULL,'',NULL),(1,1021 * ERREUR à la ligne 1 : ORA-00933: La commande SQL ne se termine pas correctement



Oracle can't insert more than 1 row at a time...

So Oracle 9.2.0 (2002 or 2004?) doesn't support this SQL99 feature : F641, "Row and table constructors" (outside Core SQL-99) and is limited to Core level. MySql supports it since the beginning, probably even in 3.23.* releases (Aug 1999).

Do register to be able to answer

 Add This Article To:
 del.icio.usDel.icio.us  diggDigg  googleGoogle  spurlSpurl
 blinkBlink  wongWong  simpySimpy  yahooY! MyWeb 
EContact
browser fav
page generated in 61.525110 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page