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
  Support
  Download
  Document
  FAQ
  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 Text(CSV)
[Demo version] The table structure of Text Table C:\Temp\db\appli.BIN is unknown. Please use CREATE
EVEREST Jean-William
2009-02-04 01:06:53.0
I use the CREATE TABLE statement, but when I want to read data the error message "The table structure of Text Table C:\Temp\db\appli.BIN is unknown. Please use CREATE TABLE to define a table structure once."

my code :
Class.forName("com.hxtt.sql.text.TextDriver");
Connection c = DriverManager.getConnection("jdbc:text:/c:/temp/db");
Statement stmt = c.createStatement();
stmt.execute("CREATE TABLE appli (appli VARCHAR (10) NOT NULL, text VARCHAR (30), PRIMARY KEY (appli));");
stmt.close();
c.close();

For reading data
Class.forName(com.hxtt.sql.text.TextDriver);
Connection conn = DriverManager.getConnection("jdbc:text:/c:/temp/db");
Statement stmt = conn.createStatement();
try {
ResultSet rs = stmt.executeQuery("SELECT screenspat FROM release");
} catch (SQLException ex) {
ex.printStackTrace();//Here is the Exception
}

Is there an explanation ?

Thanks for ALL

JW EVEREST
Lefebvre Software
40, Bd de Hambourg
13008 Marseille
Re:[Demo version] The table structure of Text Table C:\Temp\db\appli.BIN is unknown. Please use CREA
HXTT Support
2009-02-04 01:34:28.0
>Is there an explanation ?
If you use text, you need to call "CREATE TABLE appli (appli VARCHAR (10) NOT NULL, text VARCHAR (30), PRIMARY KEY (appli));")" again, since that table structure won't be stored.

>Connection c = DriverManager.getConnection("jdbc:text:/c:/temp/db");
You can use Connection c = DriverManager.getConnection("jdbc:csv:/c:/temp/db?_CSV_Header=true"); then your code will work, since csv can store your table information

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