Vikyath Ram has Published 138 Articles

How to create a table in Oracle using JDBC?

Vikyath Ram

Vikyath Ram

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

3K+ Views

You can create a table in a database using the CREATE TABLE query.SyntaxCREATE TABLE table_name(    column1 datatype,    column2 datatype,    column3 datatype,    .....    columnN datatype,    PRIMARY KEY( one or more columns ) );To create a table in a database using JDBC API you need to ... Read More

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

Vikyath Ram

Vikyath Ram

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

608 Views

You can remove a particular record from a table in a database using the DELETE query.SyntaxDELETE FROM table_name WHERE [condition];To delete a record from a table using JDBC API you need to −Register the Driver: Register the driver class using the registerDriver() method of the DriverManager class. Pass the driver class name ... Read More

How to count rows – count (*) and Java

Vikyath Ram

Vikyath Ram

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

10K+ Views

The SQL Count() function returns the number of rows in a table. Using this you can get the number of rows in a table.select count(*) from TABLE_NAME;Let us create a table with name cricketers_data in MySQL database using CREATE statement as shown below −CREATE TABLE cricketers_data(    First_Name VARCHAR(255),    Last_Name VARCHAR(255),   ... Read More

Bit-Map Protocol

Vikyath Ram

Vikyath Ram

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

4K+ Views

Bit-map protocol is a collision free protocol that operates in the Medium Access Control (MAC) layer of the OSI model. It resolves any possibility of collisions while multiple stations are contending for acquiring a shared channel for transmission.In this protocol, if a station wishes to transmit, it broadcasts itself before ... Read More

Token Passing in Bit-Map Protocol

Vikyath Ram

Vikyath Ram

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

2K+ Views

Bit-map protocol is a collision free protocol that operates in the Medium Access Control (MAC) layer of the OSI model. It resolves any possibility of collisions while multiple stations are contending for acquiring a shared channel for transmission. In this protocol, if a station wishes to transmit, it broadcasts itself ... Read More

FTP protocol client in Python

Vikyath Ram

Vikyath Ram

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

1K+ Views

The all important The FTP class in ftplib module implements the client side of the FTP protocol.To establish connection with a FTP server, obtain FTP object.con=FTP(hostname)The FTP class supports following methods −connect()Connect to the given host and port. The default port number is 21, as specified by the FTP protocol ... Read More

Package extension utility in Python

Vikyath Ram

Vikyath Ram

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

741 Views

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

Vikyath Ram

Vikyath Ram

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

334 Views

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

1K+ Views

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

306 Views

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

Advertisements