Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insertion of records into Oracle Via ODBC
Message
 
 
À
14/09/2005 16:54:26
Michael Harris
Harris and Harris Consultants
Temple Hills, Maryland, États-Unis
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 7
OS:
Windows 2000 SP4
Database:
Oracle
Divers
Thread ID:
01049648
Message ID:
01049653
Vues:
13
>I'm inserting records into an Oracle database via a straight ODBC connection. The problem is that when the records are inserted, the decimal is truncated from my numerical values. Can anyone give me an idea why this is happening and how to fix it. Thanks in advance.
>
>MEH

Can you give us an idea what your SQL looks like? Also, are you using the Oracle ODBC driver or Microsoft's? IF MS, try using the Oracle driver. An example SQL should look like:

SET field1 = ?cTextValue, field2 = ?nNumericValue, ...

declare PRIVATE variables for cTextValue, nNumericValue, etc. You can RTRIM() the text values first so your varchar2 data types will be useful to you later on.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform