Chandu yadav has Published 1091 Articles

How to use TIME type in MySQL?

Chandu yadav

Chandu yadav

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

268 Views

Let us first create a table. Within that we have set a column with type TIME to get the login time −mysql> create table DemoTable (    Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    LoginTime TIME NULL ); Query OK, 0 rows affected (0.69 sec)Insert records in the table ... Read More

Insert the specified element at the specified position in Java CopyOnWriteArrayList

Chandu yadav

Chandu yadav

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

128 Views

Using the add() method, insert the specified element at the specified position in the CopyOnWriteArrayList.The syntax is as followsvoid add(int index, E ele)Here, the parameter index is where you want to insert the element and ele is the element to be inserted to this list. To work with CopyOnWriteArrayList class, ... Read More

Set auto increment initial value for MySQL table using ALTER command

Chandu yadav

Chandu yadav

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

668 Views

To set auto increment initial value for MySQL table, use ALTER command. The first step would bealter table yourTableName modify yourColumnName int NOT NULL AUTO_INCREMENT PRIMARY KEY, add index(yourColumnName);The second step is as followsalter table yourTableName AUTO_INCREMENT=yourStartingValue;To understand the above syntax, let us create a table. The query to create ... Read More

How to change a specific char in a MySQL string?

Chandu yadav

Chandu yadav

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

314 Views

To change a specific char in a MySQL string, you can use CONCAT() along with SUBSTRING().Let us first create a table −mysql> create table DemoTable (    Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    Value varchar(200) ); Query OK, 0 rows affected (0.60 sec)Insert some records in the table ... Read More

Converting date from 'dd/mm/yyyy' to 'yyyymmdd' in MySQL

Chandu yadav

Chandu yadav

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

2K+ Views

To convert date from 'dd/mm/yyyy' to 'yyyymmdd', you can use the date_format() method. Let us first create a table −mysql> create table DemoTable (    Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    Admissiondate varchar(200) ); Query OK, 0 rows affected (0.54 sec)Insert some records in the table using insert ... Read More

8085 Program to multiply two 8-bit numbers (shift and add method)

Chandu yadav

Chandu yadav

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

5K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to multiply two numbers using shift and add methods.Problem Statement:Write 8085 Assembly language program to multiply two 8-bit numbers using shift and add method.Discussion:The shift and add method is an efficient process. In ... Read More

Data transfer schemes in 8085

Chandu yadav

Chandu yadav

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

13K+ Views

At the time of executing one 8085 program, interruption can be done in the mid-way by the virtue of the program by an Input Output device. Interruption can be done by the method according to which the processor works, since it wants urgent communication with the processor. The data transfer ... Read More

What is the difference between #include and #include “filename”?

Chandu yadav

Chandu yadav

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

361 Views

The difference between the two forms is in the location where the preprocessor searches for the file to be included.#include The preprocessor searches in an implementation-dependent manner, it searches directories pre-designated by the compiler. This method is usually used to include standard library header files.#include "filename"The preprocessor searches in the ... Read More

How to add separator to numbers using MySQL views?

Chandu yadav

Chandu yadav

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

171 Views

Let us first create a table −mysql> create table DemoTable (    StudentId int ); Query OK, 0 rows affected (0.62 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(343898456); Query OK, 1 row affected (0.20 sec) mysql> insert into DemoTable values(222333444); Query OK, 1 ... Read More

Prompt mode in 8085 Microprocessor

Chandu yadav

Chandu yadav

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

482 Views

We have seen previously that the linker is invoked in three modes i.e. they are command line mode, prompt mode and data file mode. In the Prompt mode the linker is run by simply typing the ‘LINK85’. Responding to the prompt the linker requests the user for the file name. ... Read More

Advertisements