Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  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 ACCESS
SELECT @@IDENTITY
Roberto
2006-06-20 00:54:03.0
Hi,
I have tried hxtt access3, but I get in trouble when I try to get the last autogenerated key of an insertion with the statement "SELECT @@IDENTITY". Using jdbc:odbc there was no problem, but with hxtt access I get a "Failed to parse: Stopped parse at @".
How can I resolve this?
Re:SELECT @@IDENTITY
HXTT Support
2006-06-20 01:02:25.0
You should use the standard JDBC API.
Statement.executeUpdate(sql,Statement.RETURN_GENERATED_KEYS);
Statement.getGeneratedKeys()
Re:Re:SELECT @@IDENTITY
Roberto
2006-06-20 01:09:35.0
That's what I tried first.
But I'm using MS Access and getGeneratedKeys seems not to be supported. That's why I used SELECT @@IDENTITY statement.
Re:Re:Re:SELECT @@IDENTITY
HXTT Support
2006-06-20 02:10:46.0
You're right. Please download the latest package which enabled Statement.getGeneratedKeys() function.
Re:Re:Re:Re:SELECT @@IDENTITY
Roberto
2006-06-20 02:52:41.0
That's works!! Great!
Thank you for support.

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