Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
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
   
   
   
Heng Xing Tian Tai Lab of Xi'an 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
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
>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
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap