Vikyath Ram has Published 178 Answers

Java ResultSet insertRow() method with example

Vikyath Ram
Published on 09-May-2019 12:30:56
When we execute certain SQL queries (SELECT query in general) they return tabular data.The java.sql.ResultSet interface represents such tabular data returned by the SQL statements.i.e. the ResultSet object holds the tabular data returned by the methods that execute the statements which quires the database (executeQuery() method of the Statement interface in general).The ... Read More

Java DatabaseMetaData getUserName() method with example

Vikyath Ram
Published on 09-May-2019 12:05:48
This method retrieves the user name used to establish the current connection −To retrieve the user name as known to the database −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 ... Read More

Java DatabaseMetaData getIndexInfo() method with example

Vikyath Ram
Published on 09-May-2019 11:56:02
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 ... Read More

Java DatabaseMetaData getProcedures() method with example

Vikyath Ram
Published on 09-May-2019 11:48:07
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 ... Read More

Java DatabaseMetaData getPrimaryKeys() method with example

Vikyath Ram
Published on 09-May-2019 11:43:17
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 ... Read More

Java DatabaseMetaData getJDBCMajorVersion() method with example

Vikyath Ram
Published on 09-May-2019 11:38:12
The getJDBCMajorVersion() method of the DatabaseMetaData interface returns the major version of the JDBC driver in integer format.To get major version of the JDBC driver −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 ... Read More

Java DatabaseMetaData getSQLKeywords() method with example

Vikyath Ram
Published on 09-May-2019 11:36:07
This method retrieves the list of all the SQL keywords of the underlying database and returns in the form of a String variable which holds all the keywords separated by commas.To get the list of keywords in the database −Make sure your database is up and running.Register the driver using ... Read More

Java DatabaseMetaData getIdentifierQuoteString() method with example

Vikyath Ram
Published on 09-May-2019 11:34:32
The getIdentifierQuoteString() method of the DatabaseMetaData interface retrieves and returns the retrieves the string used by the underlying database to quote SQL identifiers.To retrieve the string used by the underlying database to quote SQL identifiers.Make sure your database is up and running.Register the driver using the registerDriver() method of the ... Read More

Java DatabaseMetaData getDatabaseProductName() method with example

Vikyath Ram
Published on 09-May-2019 11:08:06
The getDatabaseProductName() method of the DatabaseMetaData interface returns the name of the underlying database in String format.To know the name of the underlying database −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 ... Read More

Java DatabaseMetaData getDatabaseProductVersion() method with example

Vikyath Ram
Published on 09-May-2019 11:06:35
The getDatabaseProductVersion() method of the DatabaseMetaData interface returns the version number of the underlying database in String format.To get the version of the underlying database −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 ... Read More
Advertisements