Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert in sqlpassthrough
Message
 
À
06/07/2005 13:28:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Oracle
Divers
Thread ID:
01028916
Message ID:
01029620
Vues:
19
Hi Francesco,
IF sqlexec(nhandle,"insert into mytable (list of fields) select list of fields from othertable") < 1
   AERROR(aaa)
   DISPLAY MEMO LIKE aaa
ENDIF
MartinJ

>>>Hi all,
>>>this statement does not work: sqlexec(nhandle,"insert into mytable select * from othertable").
>>>Any suggest will be welcome
>>>Francesco
>>
>>Number and Type of fields in MyTable must match the number and type of fields in OtherTable. But you can always check WHY this not works:
>>
>>IF sqlexec(nhandle,"insert into mytable select * from othertable") < 1
>>   AERROR(aaa)
>>   DISPLAY MEMO LIKE aaa
>>ENDIF
>>
>
>Aerror return: conectivity error ORA-9926 missing VALUES keyword. Othertable is a select of mytable with no record. I insert some values in the new record and launch the statement.
>What else could I do?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform