Probleme avec SQL sous oracle10g
adje
Messages postés
17
Date d'inscription
Statut
Membre
Dernière intervention
-
adje Messages postés 17 Date d'inscription Statut Membre Dernière intervention -
adje Messages postés 17 Date d'inscription Statut Membre Dernière intervention -
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
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:
- Probleme avec SQL sous oracle10g
- Logiciel sql - Télécharger - Bases de données
- Requete sql pix - Forum PHP
- Additions et multiplication dans des requêtes SQL ✓ - Forum MySQL
- Sql query download - Télécharger - Gestion de données
- Ora-00933: la commande sql ne se termine pas correctement ✓ - Forum Oracle
1 réponse
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
Autant faire un insert into pour chaque ligne.
cdlt
Un étranger, c'est un ami qu'on n'a pas encore rencontré.
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é.
adje
Messages postés
17
Date d'inscription
Statut
Membre
Dernière intervention
Merci jee pee pour votre reponse