Re: SQL and Scientific Notation
- From: "John Herbster" <herb-sci1_at_sbcglobal.net>
- Date: Fri, 26 Jan 2007 13:57:28 -0600
"Jeff" <jhoward@xxxxxxxxxxxx> wrote
Here is my sql statement:
INSERT INTO [Temp_Import] ([Item Number],[...] FROM [Large
Import.txt] IN "C:\Data\Delphi\Data\" "Text;"
The import value for Item Number is:12345678901234567890123456789012345
Jeff,
Is that import value passed as a text field or number?
and Temp_Import is an Access table with the ItemNumber field being defined as a text field 35
characters long. When I executed the sql statement
I get the following value in my Item Number field:
1.23456789012346E+34
Do you mean as a 21 character text value or as a
number value?
For what it is worth, your "1.23456789012346E+34"
value is exactly how FloatToStr() formats your input
number.
Does anyone know why the sql statement is switchingthe data being read from the text file to scientific
notation?
How are you viewing the data? What is the data type
property of the TField for your "number" field?
Rgds, JohnH
.
- Follow-Ups:
- Re: SQL and Scientific Notation
- From: Jeff
- Re: SQL and Scientific Notation
- References:
- SQL and Scientific Notation
- From: Jeff
- SQL and Scientific Notation
- Prev by Date: SQL and Scientific Notation
- Next by Date: Re: SQL and Scientific Notation
- Previous by thread: SQL and Scientific Notation
- Next by thread: Re: SQL and Scientific Notation
- Index(es):
Relevant Pages
|