Found 317 Articles for JDBC

Java DatabaseMetaData getMaxRowSize() method with example.

Anvi Jain
Updated on 30-Jul-2019 22:30:26

36 Views

The getMaxRowSize() method of the DatabaseMetaData interface is used to find out the maximum number of bytes that the underlying database allows in a row.This method returns an integer value, representing the maximum row size. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() method of the DriverManager class. Pass the URL the ... Read More

Java DatabaseMetaData getIndexInfo() method with example

Vikyath Ram
Updated on 30-Jul-2019 22:30:26

569 Views

This method retrieves the description of the indices of a table. It accepts 5 parameters −catalog − A string parameter representing the name of the catalog (database in general) in which the table (that contains the indices of which you need the description of) exists, pass "" to get the description of the indices in tables with no catalog and, pass null if you don't want to use catalog and thus narrow the search.schema − A String parameter representing the name of the schema of the table, pass "" to get the description of the columns in tables with no ... Read More

Java DatabaseMetaData getMaxConnections() method with example.

Nishtha Thakur
Updated on 30-Jul-2019 22:30:26

256 Views

The getMaxConnections() method of the DatabaseMetaData interface is used to find out the maximum number of connections that the underlying database allows at a time.This method returns an integer value, representing the maximum number of connections allowed at a time. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() method of the DriverManager class. ... Read More

Java DatabaseMetaData getProcedureColumns() method with example

Rishi Raj
Updated on 30-Jul-2019 22:30:26

385 Views

This method retrieves the description of the procedure parameter and result columns of a database/catalog. It accepts 4 parameters −catalog - A string parameter representing the name of the catalog (database in general) in which the procedure exists, pass "" to get the description of the primary key columns in tables with no catalog and, pass null if you don't want to use catalog and thus narrow the search.schemaPattern - A String parameter representing the name (or, name pattern) of the schema, pass "" in case of no schema and, pass null if you don't want to use schema.procedureNamePattern - ... Read More

Java DatabaseMetaData getMaxColumnsInTable() method with example.

Smita Kapse
Updated on 30-Jul-2019 22:30:26

28 Views

The getMaxColumnsInTable() method of the DatabaseMetaData interface is used to find out the maximum number of columns that the underlying database allows in a table.This method returns an integer value, representing the maximum number of columns allowed in a table. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() method of the DriverManager ... Read More

Java DatabaseMetaData getMaxColumnsInSelect() method with example.

Anvi Jain
Updated on 30-Jul-2019 22:30:26

18 Views

The getMaxColumnsInSelect() method of the DatabaseMetaData interface is used to find out the maximum number of columns that the underlying database allows in a SELECT list.This method returns an integer value, representing the maximum number of columns allowed in a SELECT list. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() method of ... Read More

Java DatabaseMetaData getProcedures() method with example

Vikyath Ram
Updated on 30-Jul-2019 22:30:26

461 Views

This method retrieves the description of the stored procedures of a database/catalog. It accepts 3 parameters −catalog: A string parameter representing the name of the catalog (database in general) in which the procedure exists. Pass "" to get the description of the primary key columns in tables with no catalog and, pass null if you don't want to use catalog and thus narrow the search.schemaPattern: A String parameter representing the name (or, name pattern) of the schema, pass "" in case of no schema and, pass null if you don't want to use schema.procedureNamePattern: A String parameter representing the name ... Read More

Java DatabaseMetaData getMaxColumnsInOrderBy() method with example.

Nishtha Thakur
Updated on 30-Jul-2019 22:30:26

23 Views

The getMaxColumnsInOrderBy() method of the DatabaseMetaData interface is used to find out the maximum number of columns that the underlying database allows in an ORDER BY clause.This method returns an integer value, representing the maximum number of columns allowed in an ORDER BY clause. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() ... Read More

Java DatabaseMetaData getMaxColumnsInGroupBy() method with example.

Smita Kapse
Updated on 30-Jul-2019 22:30:26

18 Views

The getMaxColumnsInGroupBy() method of the DatabaseMetaData interface is used to find out the maximum number of columns that the underlying database allows in a GROUP BY clause.This method returns an integer value, representing the maximum number of columns allowed in a GROUP BY clause. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() ... Read More

Java DatabaseMetaData getPrimaryKeys() method with example

Vikyath Ram
Updated on 30-Jul-2019 22:30:26

1K+ Views

This method retrieves the description of the primary key columns of a table. It accepts 3 parameters −catalog - A string parameter representing the name of the catalog (database in general) in which the table exists, pass "" to get the description of the primary key columns in tables with no catalog and, pass null if you don't want to use catalog and thus narrow the search.schema - A String parameter representing the name of the schema of the table, pass "" to get the description of the columns in tables with no schema and, pass null if you don't ... Read More

Advertisements