Listing All Non-SQL92 Keywords Used by a Database - Java JDBC

Java examples for JDBC:Database Meta Data

Description

Listing All Non-SQL92 Keywords Used by a Database

Demo Code

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) {
    }
  }
}

Related Tutorials