Jennifer Nicholas has Published 329 Articles

Resolve the MySQL error 'TYPE=MyISAM'?

Jennifer Nicholas

Jennifer Nicholas

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

1K+ Views

To fix the error, you just need to replace TYPE with ENGINE. The syntax to set the engine is as follows −ENGINE = MyISAM;The MySQL error occurs when TYPE is used. Let us see the same scenario while creating a table −mysql> create table Customers −> ( ... Read More

How to return the nth record from MySQL query?

Jennifer Nicholas

Jennifer Nicholas

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

859 Views

To get the nth record from MySQL query, you can use LIMIT. The syntax is as follows −select *from yourTableName order by yourColumnName limit n, 1;To understand the above syntax, let us create a table. The following is the query to create a table −mysql> create table NthRecordDemo ... Read More

How to make MySQL's NOW() and CURDATE() functions use UTC?

Jennifer Nicholas

Jennifer Nicholas

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

143 Views

To make MySQL’s NOW() and CURDATE() functions use UTC, you need to write my.cnf file. Write the below instruction in my.cnf −[mysqld_safe] timezone = UTCFirstly, reach the directory with the help of the following query −mysql> select @@datadir;The following is the output −+---------------------------------------------+ | @@datadir ... Read More

How to insert multiple rows with single MySQL query?

Jennifer Nicholas

Jennifer Nicholas

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

302 Views

You can insert multiple rows with the help of values() separated by comma(, ). The syntax is as follows −insert into yourTableName values(value1, value2, ...N), (value1, value2, ...N), (value1, value2, ...N), (value1, value2, ...N), (value1, value2, ...N), (value1, value2, ...N)................N;To insert multiple rows, let us create a table. The following ... Read More

How to alter multiple columns in a single statement in MySQL?

Jennifer Nicholas

Jennifer Nicholas

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

2K+ Views

Alter multiple columns in a single statement with the help of CHANGE command. The syntax is as follows −alter table yourTableName change yourOldColumnName1 yourNewColumnName1 dataType, yourOldColumnName2 yourNewColumnName2 dataType, . . . NTo understand the above syntax, let us create a table. The query to create a table is as follows ... Read More

8085 program to add 2-BCD numbers

Jennifer Nicholas

Jennifer Nicholas

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

4K+ Views

In this program we will see how to add two 8-bit BCD numbers.Problem StatementWrite 8085 Assembly language program to add two 8-bit BCD number stored in memory location 8000H – 8001H.DiscussionThis task is too simple. Here we are taking the numbers from memory and after adding we need to put ... Read More

How to not allow duplicate entries to be entered a MySQL Table?

Jennifer Nicholas

Jennifer Nicholas

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

421 Views

To not allow any duplicate entry to be entered in a MySQL table, you need to add unique key. The syntax is as follows −alter ignore table yourTableName add constraint unique key(yourColumName);The above syntax sets unique key. To understand the above syntax, let us create a table.The following is the ... Read More

8085 program to check whether the given number is even or odd

Jennifer Nicholas

Jennifer Nicholas

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

8K+ Views

In this program we will see how to check whether a number is odd or even.Problem StatementWrite 8085 Assembly language program to check whether a number is odd or even.DiscussionThe Odd Even checking is very simple. we can determine one number is odd or even by checking only the LSb. ... Read More

8085 program to find maximum of two 8 bit numbers

Jennifer Nicholas

Jennifer Nicholas

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

579 Views

In this program we will see how to find the maximum of two numbers.Problem StatementWrite 8085 Assembly language program to find the maximum number of two 8-bit number stored at location 8000H and 8001H.DiscussionThis checking is done by using the CMP instruction. This instruction is very similar to the SUB ... Read More

Appending data to a MySQL field that already has data in it?

Jennifer Nicholas

Jennifer Nicholas

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

4K+ Views

You can append data to a MySQL database field with the help of in-built CONCAT() function.The syntax is as follows −update yourTableName set yourColumnName = CONCAT(yourColumnName, ’AppendValue’);To understand the above concept, let us create a table. The query to create a table −mysql> create table AppendingDataDemo −> ... Read More

Advertisements