Arushi has Published 141 Articles

How to get the table name of the current ResultSet using JDBC?

Arushi

Arushi

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

3K+ Views

You can get the name of the table in the current ResultSet object using the getTableName() method of the ResultSetMetaData interface. This method accepts an integer value representing the index of a column and, returns a String value representing the name of the table that contains the given column.Let us create ... Read More

How to get Row and Column Count from ResultSet in JDBC

Arushi

Arushi

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

3K+ Views

Row countThe last() method of the ResultSet interface moves the cursor to the last row of the ResultSet and, the getRow() method returns the index/position of the current row.Therefore, to get the number of rows move the cursor to the last row using the last() method and get the position of that (last) row ... Read More

How to generate multiple insert queries via java?

Arushi

Arushi

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

4K+ Views

JDBC provides a mechanism known as batch processing, in which you can group a set of INSERT or, UPDATE or, DELETE commands (those produce update count value) and execute them at once. You can insert multiple records in to a table using this.Adding statements to the batchStatement, PreparedStatement and CallableStatement ... Read More

Collision-Free Protocols

Arushi

Arushi

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

19K+ Views

In computer networks, when more than one station tries to transmit simultaneously via a shared channel, the transmitted data is garbled. This event is called collision. The Medium Access Control (MAC) layer of the OSI model is responsible for handling collision of frames. Collision – free protocols are devised so ... Read More

How to drop a table from Oracle database using JDBC API?

Arushi

Arushi

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

243 Views

You can insert records into a table using the INSERT query.SyntaxINSERT INTO TABLE_NAME (column1, column2, column3, ...columnN) VALUES (value1, value2, value3, ...valueN); Or, INSERT INTO TABLE_NAME VALUES (value1, value2, value3, ...valueN);To insert a record into a table in a database using JDBC API you need to −Register the Driver: Register ... Read More

How to retrieve a record from an existing table in oracle database using JDBC API?

Arushi

Arushi

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

1K+ Views

You can update/modify the existing contents of a record in a table using the UPDATE query. Using this you can update all the records of the table or specific records.SyntaxUPDATE table_name SET column1 = value1, column2 = value2...., columnN = valueN WHERE [condition];To update the contents of a record in ... Read More

How to create a Stored procedure in Oracle database using JDBC API?

Arushi

Arushi

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

723 Views

Stored procedures are sub routines, segment of SQL statements which are stored in SQL catalog. All the applications that can access Relational databases (Java, Python, PHP etc.), can access stored procedures.Stored procedures contain IN and OUT parameters or both. They may return result sets in case you use SELECT statements. ... Read More

Reservation Protocols in Computer Network

Arushi

Arushi

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

6K+ 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

249 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

669 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

Advertisements