Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  Buy Now
  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)

Column types
2006-09-11 15:38:36.0

Is there a way (for example a property) to force the HXTT text driver to consider all columns of a query as string columns without the need to construct a CREATE TABLE statement? If not could you consider implementing this?

Thanks in advance,
Re:Column types
HXTT Support
2006-09-11 18:41:19.0
For CSV, PSV, and TSV, it can do that things easily, for instance,
jdbc:csv:////usr/data?csvfileExtension=TXT;_CSV_Header=true //all CSV files with TXT extension, and first line for column names.
jdbc:csv:////usr/data?_CSV_Separator=\t //TSV file without column name header.
jdbc:csv:////usr/data?_CSV_Separator=|;maxScanRows=-1 //PSV file's column type will be regarded as varchar without detection automatically.

Then you can use all sqls without CREATE TABLE sql:)

For plain text which can't be detected without column separator help, you need CREATE TABLE sql. It supports universal table declaration for a series of tables with the same table structure. '?' represents any single character, and '*' represents a string of zero or more characters. For instance, create table "*.log" (...); create table [*a?b.*"] (...). Universal table declaration is only visible for the current connection, and isn't prior to any specific table declaration. You can store all common table declaration sql in schemaFile(connection property, can be load from any (absolute or relative) path, even you can load it from http url or compressed file.), then you needn't to call CREATE TABLE in your program.

Re:Re:Column types
HXTT Support
2006-09-11 18:42:42.0
If those above hints can't help you, please let us know your situation, suggestion and requirement:)

Search Key   Search by Last 50 Questions


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