× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




Hi James,

The nativeSQL() method asks the driver for the, um, native SQL version of the statement submitted.

RRN is not an SQL concept.

Database metadata allows access to all information available, including SQL conformance. Since JDBC is an SQL API, it doesn't provide info for things outside the standard. A specific JDBC driver, of course, can do anything it wants to do, so long as it conforms to the rest of the JDBC standard.

What, your Chinese guys don't know this?

HTH,


Joe Sam

Joe Sam Shirah - www.conceptgo.com (904) 302-6870
conceptGO - Consulting/Development/Outsourcing
Java Filter Forum: www.ibm.com/developerworks/java
Just the JDBC FAQs: www.jguru.com/faq/JDBC
Going International? www.jguru.com/faq/I18N
Que Java400? www.jguru.com/faq/Java400





-----Original Message----- From: James H. H. Lampert
Sent: Monday, January 28, 2013 12:16 PM
To: Java Programming on and around the IBM i
Subject: Hmm. "String nativeSQL(String sql) . . . converts the . . . JDBCSQL grammar into . . . the native form of the statement"

From the JavaDoc:
nativeSQL

String nativeSQL(String sql) throws SQLException

Converts the given SQL statement into the system's native SQL
grammar. A driver may convert the JDBC SQL grammar into its system's
native SQL grammar prior to sending it. This method returns the
native form of the statement that the driver would have sent.


Anybody here know what that's all about? Is there some unified JDBC SQL
standard that somehow homogenizes things like RRN in DB2/400, and LIMIT
in MySQL?

Also, does anybody know of a way, via a JDBC connection, to find out
(other than by trial-and-error) whether a given database system supports
things like RRN and LIMIT, and whether a given table has a primary key?

--
JHHL

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.