Rishi Rathor has Published 155 Articles

How to substring value in a MySQL table column?

Rishi Rathor

Rishi Rathor

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

193 Views

To substring a MySQL table column, use the in-built SUBSTR() function from MySQL. The syntax is as follows −select substr(yourColumnName, AnyValue) as anyVariableName from yourTableName;To understand the function substr(), let us create a table. The query to create a table is as follows −mysql> create table SubStringDemo ... Read More

Program to Find the largest number in an array of data in 8085 Microprocessor

Rishi Rathor

Rishi Rathor

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

18K+ Views

In this program we will see how to find the largest number from a block of bytes using 8085.Problem StatementWrite 8085 Assembly language program to find the largest number from a block of bytes.DiscussionIn this program the data are stored at location 8001H onwards. The 8000H is containing the size ... Read More

8085 program to add two 16 bit numbers

Rishi Rathor

Rishi Rathor

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

12K+ Views

In this program we will see how to add two 16-bit numbers.Problem StatementWrite8085 Assembly language program to add two 16-bit number stored in memory location 8000H – 8001H and 8002H – 8003H.DiscussionIn this program we are pointing the operand addresses using HL and DE register pair. Then adding LSBytes by ... Read More

8085 program to find the sum of first n natural numbers

Rishi Rathor

Rishi Rathor

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

2K+ Views

In this program we will see how to add first n natural numbers.Problem StatementWrite 8085 Assembly language program to add first N natural numbers. The value of N is provided.DiscussionWe are getting the value of N from memory location 8000H. We are using the number N as count variable, in ... Read More

8085 program to find 1's and 2's complement of 8-bit number

Rishi Rathor

Rishi Rathor

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

5K+ Views

In this program we will see how to find 1's complement and 2's complement of an 8-bit number.Problem StatementWrite 8085 Assembly language program to find 1's complement and 2's complement of a number stored in 8000H.Discussion8085 has an instruction CMA. This instruction complements the content of Accumulator. For 1's complement ... Read More

8085 program to find maximum and minimum of 10 numbers

Rishi Rathor

Rishi Rathor

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

1K+ Views

In this program we will see how to find the maximum and minimum number in a block data.Problem StatementWrite 8085 Assembly language program to find the maximum and minimum number in a block often 8-bit numbers.DiscussionIn this program we are taking the first number of the block into register D ... Read More

What is the MySQL error: “Data too long for column”?

Rishi Rathor

Rishi Rathor

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

18K+ Views

The “Data too long for column” error occurs when you insert more data for a column that does not have the capability to store that data.For Example - If you have data type of varchar(6) that means it stores only 6 characters. Therefore, if you will give more than 6 characters, then ... Read More

Using MySQL, can I sort a column but allow 0 to come last?

Rishi Rathor

Rishi Rathor

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

36 Views

You can sort a column, with 0 come last with the help of ORDER BY. The syntax is as follows −select *from yourTableName order by yourFieldName = 0, yourFieldName;To understand the above concept, let us create a table. The query to create a table is as follows −mysql> create table ... Read More

8085 program to swap two 8-bit numbers

Rishi Rathor

Rishi Rathor

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

3K+ Views

In this program we will see how to swap two numbers.Problem StatementWrite 8085 Assembly language program to swap two 8-bit number stored at location 8000Hand 8001H.DiscussionIn 8085, there is an instruction XCHG. Using this we can swap the contents of DE and HL values. We are taking the numbers and ... Read More

How to get a list of MySQL user hosts?

Rishi Rathor

Rishi Rathor

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

337 Views

Firstly, get a list of MySQL user accounts, using MySQL.user table. You can use select user column from MySQL.user table to get a list of MySQL user accounts.The query is as follows −mysql> select user from MySQL.user;The following output displays all the users −+------------------+ | user         ... Read More

Advertisements