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
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  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 Excel
get incorrect data with group-by-clause
Chi Thien Phan
2015-09-28 06:26:15.0
hi,

the sql statement with group-by-clause give us incorrect data. The demo data will be sent to your mail.

------------------------------
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class HTXX_Excel {

public static void main(String[] args) {
try {
Class.forName("com.hxtt.sql.excel.ExcelDriver");
Connection conn = DriverManager.getConnection("jdbc:excel:/C:/Users/pha.GTT-ALLGEMEIN/Desktop/Test123.xlsx?maxScanRows=0&caseInsentive=true&delayedClose=0");

String query = "select * from Tabelle1 group by Prozessschritt";
Statement stmt = conn.createStatement();
ResultSet resultSet = stmt.executeQuery(query);
resultSet.getMetaData();

while (resultSet.next()) {
System.out.println("-------------------------------------");
for(int i = 1; i < 2; i++){
System.out.println(resultSet.getObject(i));
}
}
resultSet.close();
stmt.close();
conn.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}

----------------------------------------------------------

Pls fix it!

thx
Re:get incorrect data with group-by-clause
HXTT Support
2015-09-28 07:51:52.0
Supported. Please download the latest package.
Re:Re:get incorrect data with group-by-clause
Chi Thien Phan
2015-09-30 04:48:42.0
thx, it works fine now!

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