Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for inserting rows into SQL Server?
Message
De
18/11/2003 06:52:06
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Syntax for inserting rows into SQL Server?
Divers
Thread ID:
00850927
Message ID:
00850927
Vues:
70
I've just tried

SQLEXEC(gnhandle,"insert into vizkeys (realkey,kcurrent,date_used,kprevious,knext,date_up,crypt_key,mess_hash,ownerkey) values (m.realkey,m.kcurrent,m.date_used,'','',m.date_up,'','',m.ownerkey)",'real')

and got this error message:

"The name 'realkey' is not permitted in this context. Only constants, expressions,or variables allowed here. Column names are not permitted."

which makes no sense to me whatever, as Column names would seem to be an obvious requirement when we're inserting records!!

and while we're on the subject, even if I can straighten out that syntax, reading around the various guides to SQL, individual inserts looks like it would be an inefficient way to add, for example, 10000 records to a table with several million. Anyone know where to find a step by step guide to that kind of insertion?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform