Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
  HXTT Excel v5.0
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT XML v2.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 Beijing 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
 

Email: webmaster@hxtt.com
Copyright © 1999-2017 Heng Xing Tian Tai Lab of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap