Anvi Jain has Published 634 Articles

Get a list of non-empty tables in a particular MySQL database?

Anvi Jain

Anvi Jain

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

369 Views

To get a list of non-empty tables in a particular MySQL database, the following is the syntax −SELECT table_type, table_name, table_schema from information_schema.tables where table_rows >= 1 and table_schema = 'yourDatabaseName';Implement the above syntax for your database. Here, our database is “test”. The query is as follows −mysql> select table_type, ... Read More

8085 program to find 2's complement of the contents of Flag Register

Anvi Jain

Anvi Jain

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

309 Views

In this program we will see how to find 2's complement of the content of flag register.Problem StatementWrite 8085 Assembly language program to find 2's complement of the content of flag register.DiscussionWe cannot access the total flag register directly. To use them we have to push the PSW(Accumulator-Flag) into stack, ... Read More

8085 program to find smallest number between two numbers

Anvi Jain

Anvi Jain

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

2K+ Views

In this program we will see how to find the smallest of two numbers.Problem StatementWrite 8085 Assembly language program to find the smallest 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

How to decrement a value in MySQL keeping it above zero?

Anvi Jain

Anvi Jain

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

3K+ Views

You can decrement value in MySQL with update command. With this, you can also restrict the value to not reach below 0.The syntax is as follows −update yourTableName set yourColumnName = yourColumnName - 1 where yourColumnName > 0;To avoid the value to go below zero, you can use yourColumnName > ... Read More

8085 program to swap two 16-bit numbers using Direct addressing mode

Anvi Jain

Anvi Jain

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

784 Views

In this program we will see how to swap two 16-bit numbers in direct addressing mode.Problem StatementWrite 8085 Assembly language program to swap two 16-bit number stored at location 8000H – 8001H and 8002H – 8003H using direct addressing mode.DiscussionHere we are swapping the values using XCHG instruction. This instruction ... Read More

Insert datetime into another datetime field in MySQL?

Anvi Jain

Anvi Jain

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

367 Views

You can achieve this with the help of update command. To understand the method, let us create a table. The query to create a table is as follows −mysql> create table AddDateTimeWithOther −> ( −> Id int, −> IssueDate datetime, ... Read More

Working of 8212

Anvi Jain

Anvi Jain

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

410 Views

There are two types of Input Output ports. They are Programmable Input Output ports and Non-Programmable Input Output ports. Since the functions of Programmable Input Output ports changed by software they became more popular. We don't need to change the wiring rather the hardware of the I/O port to change ... Read More

8085 program to convert an 8 bit number into Grey number

Anvi Jain

Anvi Jain

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

189 Views

In this program we will see how to find the gray code from an 8-bit number.Problem StatementWrite 8085 Assembly language program to convert an 8-bit number stored at 8000H to its equivalent gray code. The result will be stored at 8050H.DiscussionIn this program we are converting binary to gray code. ... Read More

8085 program to convert 8 bit BCD number into ASCII Code

Anvi Jain

Anvi Jain

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

1K+ Views

Now let us see a program of Intel 8085 Microprocessor. This program will convert 8-bit BCDnumbers to two digit ASCII values.Problem StatementWrite 8085 Assembly language program where an 8-bit BCD number is stored in memory location 8050H. Separate each BCD digit and convert it to corresponding ASCII code and store ... Read More

How to detect which iOS version is running on the device?

Anvi Jain

Anvi Jain

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

374 Views

When working on iOS applications, we sometimes need to know the version that's running on an iPhone device. In this article we'll learn how to find the iOS version being used, using an iOS Application.Create an iOS application and in it's viewController's view did load function write the following code.print(" ... Read More

Advertisements