Java examples for JDBC:Database Meta Data
Listing All Non-SQL92 Keywords Used by a Database
import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.SQLException; public class Main { void m() throws Exception { try {/*from w w w . j av a 2 s . c o m*/ Connection connection = null; DatabaseMetaData dbmd = connection.getMetaData(); // Get a list of keywords String[] keywords = dbmd.getSQLKeywords().split(",\\s*"); } catch (SQLException e) { } } }