Arushi has Published 152 Articles

Reservation Protocols in Computer Network

Arushi

Arushi

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

4K+ Views

Reservation protocols are the class of protocols in which the stations wishing to transmit data broadcast themselves before actual transmission. These protocols operate in the medium access control (MAC) layer and transport layer of the OSI model.In these protocols, there is a contention period prior to transmission. In the contention ... Read More

Access to the underlying platform’s identifying data in Python

Arushi

Arushi

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

152 Views

Functions in the platform module help us probe the underlying platform’s hardware, operating system, and interpreter version information.architecture()This function queries the given executable (defaults to the Python interpreter executable) for various architecture information.>>> import platform >>> platform.architecture() ('64bit', '')machine()This function returns the machine type, e.g. 'i386'. An empty string is ... Read More

zipapp - Manage executable Python zip archives

Arushi

Arushi

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

477 Views

The zipapp module has been introduced in Python's standard library since ver 3.5. This module is used to manage the creation of zip files containing Python code, which can be executed directly by the Python interpreter. The module provides both a Command-Line Interface and a programming interface.To use zipapp module ... Read More

Java sql.Date setTime() method with example.

Arushi

Arushi

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

649 Views

The setTime() method of the java.util.Date 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 Date object.//Setting time date.setTime(time_value_in_long);ExampleLet us create a table with name ... Read More

Java sql.Date valueOf() method with example

Arushi

Arushi

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

3K+ Views

The valueOf() method of the java.sql.Date class accepts a String value representing a date in JDBC escape format (yyyy-mm-dd) and convertsthe given String value into Date object.Date date = Date.valueOf("date_string");ExampleLet us create a table with name dispatches in MySQL database using CREATE statement as follows −CREATE TABLE dispatches(    ProductName ... Read More

How to reorder the columns of a table in JDBC?

Arushi

Arushi

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

184 Views

You can reorder the columns of a table in MySQL database using the ALTER TABLE command.SyntaxALTER TABLE table_name MODIFY column_name datatype AFTER another_columnAssume we have a table named dispatches_data in the database with 7 columns namely ProductName, CustomerName, DispatchDate, DeliveryTime, Price, Location and, ID with description as −//Retrieving the Time object ... Read More

Java DatabaseMetaData getDatabaseMajorVersion() method with example

Arushi

Arushi

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

176 Views

The getDatabaseMajorVersion() method of the DatabaseMetaData interface returns the major version of the underlying database in integer format.To get major 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 getColumns() method with example

Arushi

Arushi

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

3K+ Views

This method retrieves the description of the columns of a table. It accepts 4 parameters −catalog - A string parameter representing the name (or, name pattern) of the catalog (database in general) in which the table (that contains the columns of which you need to retrieve the description about) exists. ... Read More

Java DatabaseMetaData getDefaultTransactionIsolation() method with example

Arushi

Arushi

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

82 Views

In a database system where more than one transaction is being executed simultaneously and in parallel, the property of isolation states that all the transactions will be carried out and executed as if it is the only transaction in the system. No transaction will affect the existence of any other ... Read More

Java DatabaseMetaData getDriverMinorVersion() method with example

Arushi

Arushi

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

53 Views

The getDriverMinorVersion() method of the DatabaseMetaData interface returns the minor version of the JDBC driver used.To get the minor version of the JDBC driver used to connect with the database −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an ... Read More

Advertisements