Listing the System Functions Supported by a Database

This example gets a list of system functions that a database supports.
try { DatabaseMetaData dbmd = connection.getMetaData(); // Get the list of system functions String[] systemFunctions = dbmd.getSystemFunctions().split(",\\s*"); } catch (SQLException e) { }
Examples in an Oracle database include:
DUMP, GREATEST, GREATEST_LB, LEAST, LEAST_UB, NVL, UID, USER, USERENV, VSIZE
Examples in a MySQL database include:
DUMP, GREATEST, GREATEST_LB, LEAST, LEAST_UB, NVL, UID, USER, USERENV, VSIZE

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.