Probleme avec SQL sous oracle10g

Fermé
adje Messages postés 17 Date d'inscription mardi 14 août 2012 Statut Membre Dernière intervention 11 décembre 2013 - 24 avril 2013 à 17:03
adje Messages postés 17 Date d'inscription mardi 14 août 2012 Statut Membre Dernière intervention 11 décembre 2013 - 25 avril 2013 à 09:54
Bonjour a tous
Je suis un apprentis développer qui vient demander votre aide SVP.
j'ai un soucis avec mon SQL qui me met des erreurs , je veux insérer plusieurs ligne en même temps , merci une foi encore pour votre aide.
voici le code:


SQL> insert into title (title_id, title, description, rating, categorie, release_date)
2 values(title_id_seq.nextval,'willie and chritmas too','all of willie"'"s friend make a christma
s list for santa","but willie has yet toadd his own wish list',
3 'g','child',to_date('05-OCT-1995','dd-mon-yyyy')),
4 (title_id_seq.nextval,'alien again','yet another installation of science fiction history".
"can the heroine save the planet from the alien life form"?"',
5 'r','scifi',to_date('19-MAY-1995','dd-mon-yyyy')),
6 (title_id_seq.nextval,'the glob','a meteor crashes near a small american town and unleashe
s carnivorous goo in this classic',
7 'nr','scifi','to_date('12-AUG-1995','dd-mon-yyyy')),
8 (title_id_seq.nextval,'my day off','with a little luck and a lot of ingenuity, a teenager s
kips school for a day in new york',
9 'pg','comedy',to_date('12-JUL-1995','dd-mon-yyyy')),
10 (title_id_seq.nextval,'miracles on ice','a six-year-old has doubts about santa claus"," but
she discovers that miracles really do exist',
11 'pg','drama',to_date('12-SEP-1995','dd-mon-yyyy')),
12 (title_id_seq.nextval,'soda gang','after discovering a cache of drugs"," a young couple fi
nd themslves pitted againts a vicious gang',
13 'nr','action',to_date('01-JUN-1995','dd-mon-yyyy'));
ERROR:
ORA-00972: l'identificateur est trop long
A voir également:

1 réponse

jee pee Messages postés 39702 Date d'inscription mercredi 2 mai 2007 Statut Modérateur Dernière intervention 9 mai 2024 9 262
Modifié par jee pee le 24/04/2013 à 21:10
Bonjour,

Pour moi l' insert into est mono ligne.

La seule syntaxe qui semble exister en multi ligne c'est l'insert all voir : http://psoug.org/reference/insert.html

INSERT ALL 
INTO t (pid, fname, lname) 
VALUES (1, 'Dan', 'Morgan') 
INTO t (pid, fname, lname) 
VALUES (2, 'Jeremiah', 'Wilton') 
INTO t (pid, fname, lname) 
VALUES (3, 'Helen', 'Lofstrom') 
SELECT * FROM DUAL;


Autant faire un insert into pour chaque ligne.

cdlt

Un étranger, c'est un ami qu'on n'a pas encore rencontré.
0
adje Messages postés 17 Date d'inscription mardi 14 août 2012 Statut Membre Dernière intervention 11 décembre 2013
25 avril 2013 à 09:54
Merci jee pee pour votre reponse
0