Re: SQL and Scientific Notation
- From: "Jeff" <jhoward@xxxxxxxxxxxx>
- Date: Fri, 26 Jan 2007 14:11:52 -0700
Is that import value passed as a text field or number?<<<< I am reading the value in from a text file using an ADO text driver.
The schema file only specifies header yes and that it is a comma delimited
file. The acutal file itself is not using any single or double quotes on any
of the fields. The other data types have not had any trouble.
<<<< I meant to say that the value that ended up as
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?
12345678901234567890123456789012345 in my text file was now
1.23456789012346E+34 in my Access table. The Access table field has been
defined as type text and 35 characters long.
<<<< I am viewing the data using Microsoft Access into a previously defined
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?
table definition.
"John Herbster" <herb-sci1_at_sbcglobal.net> wrote in message
news:45ba5cf5$1@xxxxxxxxxxxxxxxxxxxxxxxxx
"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: John Herbster
- Re: SQL and Scientific Notation
- From: John Herbster
- Re: SQL and Scientific Notation
- References:
- SQL and Scientific Notation
- From: Jeff
- Re: SQL and Scientific Notation
- From: John Herbster
- SQL and Scientific Notation
- Prev by Date: Re: SQL and Scientific Notation
- Next by Date: Re: SQL and Scientific Notation
- Previous by thread: Re: SQL and Scientific Notation
- Next by thread: Re: SQL and Scientific Notation
- Index(es):
Relevant Pages
|