Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT DBF
Incorrect width of numeric field after create
Sergeus
2008-06-27 05:23:16.0
Hello,
I want create table, using HXTT DBF 3.0.
Execute SQL-query:

CREATE TABLE info (A NUMERIC(2,0), B NUMERIC(2), C NUMERIC(4,2)))

In result DBF-file have following fields:

A width 4 decimal 0
B width 2 decimal 0
C width 4 decimal 2

Help me, please... I using licence HXTT DBF 3.0.
Re:Incorrect width of numeric field after create
HXTT Support
2008-06-27 06:03:18.0
For small scale in DBF, it will used extra 2 length to avoid no space for radix point and sign.
Re:Re:Incorrect width of numeric field after create
sergeus
2008-06-27 06:08:50.0
so, but i need field with width = 2

Which SQL-script i should write?
Re:Re:Re:Incorrect width of numeric field after create
sergeus
2008-06-27 06:18:58.0
Also on, in previous version of driver file was created succesfully
Re:Re:Re:Re:Incorrect width of numeric field after create
HXTT Support
2008-06-28 02:52:02.0
Because some users need to convert it to other database, so we do those modification. You can download the latest package, then try:
CREATE TABLE info (A NUMERIC(2,0), B NUMERIC(2), C NUMERIC(4,2))

Re:Re:Re:Re:Re:Incorrect width of numeric field after create
sergeus
2008-06-29 23:54:00.0
Thank's, but i have one question yet:

running script
CREATE TABLE info (A NUMERIC(2,0), B NUMERIC(2), C NUMERIC(19,2))
in result
A width 2 decimal 0
B width 2 decimal 0
C width 20 decimal 2 (!!!!) Why??

correct this, please
Re:Re:Re:Re:Re:Re:Incorrect width of numeric field after create
HXTT Support
2008-06-30 01:37:33.0
>correct this, please
It's still using special process for Xbase. If you need wide 19, you should use
CREATE TABLE info (A NUMERIC(2,0), B NUMERIC(2), C NUMERIC(18,2))
No more correct for data convert compatibility.

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap