Vikyath Ram has Published 176 Answers

Package extension utility in Python

Vikyath Ram

Vikyath Ram

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

When you want to add to the module search path for a specific package and work with resources included in a package, you need to use pkgutil module from Python library. It includes functions for changing the import rules for Python packages. It is also possible to load non-code resources ... Read More

Java sql.Time setTime() method with example

Vikyath Ram

Vikyath Ram

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

The setTime() method of the java.util.Time class accepts a variable of long type, representing the number of milliseconds from the epoch time (January 1, 1970 00:00:00.000 GMT) to the required time, and sets the specified time value to the current Time object//Setting time time.setTime(time_value_in_long);ExampleLet us create a table with name ... Read More

Java sql.Time toString() method with example

Vikyath Ram

Vikyath Ram

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

The toString() method of the java.sql.Time class returns the JDBC escape format of the time of the current Time object as String variable.i.e. using this method you can convert a Time object to a String.//Retrieving the Time object Time timeObj = rs.getTime("DeliveryTime"); //Converting the Time object to String format String ... Read More

Java sql.Time valueOf() method with example

Vikyath Ram

Vikyath Ram

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

The valueOf() method of the java.sql.Time class accepts a String value representing a time in JDBC escape format and converts the given String value into Time object.Time time = Time.valueOf("time_string");ExampleLet us create a table with name dispatches in MySQL database using CREATE statement as follows −CREATE TABLE dispatches(    ProductName ... Read More

Java DatabaseMetaData getDatabaseProductVersion() method with example

Vikyath Ram

Vikyath Ram

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

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

Java DatabaseMetaData getDatabaseProductName() method with example

Vikyath Ram

Vikyath Ram

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

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 getIdentifierQuoteString() method with example

Vikyath Ram

Vikyath Ram

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

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 getSQLKeywords() method with example

Vikyath Ram

Vikyath Ram

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

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 getJDBCMajorVersion() method with example

Vikyath Ram

Vikyath Ram

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

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 getPrimaryKeys() method with example

Vikyath Ram

Vikyath Ram

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

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

Advertisements