Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert date in sql server
Message
 
À
12/04/2006 13:18:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01113026
Message ID:
01113281
Vues:
17
Hi Robert?

Why don't you use bind parameters?
LOCAL ldDate,lyCurrency, luRate
ldDate=DATE()
lyCurrency=$25641
luRate=.NULL.

=SQLEXEC(handle, "insert into table test (tr_date,tr_currency,tr_rate) values (?ldDate,?lyCurrency,?luRate)")
MartinJ

>i want to do a insert in a table with sqlexec
>
>table test
>
>field : tr_date,tr_currency
>
>
>i got an error when i do that
>
>"insert into table test (tr_date,tr_currency,tr_rate) values (" + date()+",'"+l_cur+"')"
>
>
>and i know is about the date()
>
>
>how can i do
>
>
>
>thanks
"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