Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting numeric data via SQL pass-through
Message
De
04/02/2002 21:15:05
Arden Weiss
Liberty Computers Ltd.
Maryland, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Inserting numeric data via SQL pass-through
Divers
Thread ID:
00615200
Message ID:
00615200
Vues:
56
Newbie lost in the syntax jungle again...

The following INSERT statement works fine if all of the columns/fields are character. However, if the LIC_NUMBR field were a Smallint or TinyInt field type, what is the syntax to make this work? Note '&mLIC_NUMBR' is a VFP memory variable.

lnResult = SQLEXEC(hConn, ;
"INSERT INTO EXPORT " + ;
"(APPL_TYPE, LK_NUMBER, LIC_NUMBR, COMPANY, " + ;
" CONG_REV ) " + ;
"VALUES ('&mAPPL_TYPE', '&mLK_NUMBER', '&mLIC_NUMBR', '&mCOMPANY', " + ;
" '&mCONG_REV')" )

Similar question -- what if it were either a "bit" field and a "datetime" field type.

Thanks in advance again...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform