Ankith Reddy has Published 1070 Articles

Different methods to check if a MySQL table exist?

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 13:01:58

119 Views

Let us see some of the ways to check if a table exist in MySQL or not.Using SHOWThe SHOW command displays all the tables.SHOW tables;Here is the output.+--------------------------+ | Tables_in_business       | +--------------------------+ | addcheckconstraintdemo   | | addcolumntable           | | addconstraintdemo   ... Read More

How do I know if a MySQL table is using myISAM or InnoDB Engine?

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 12:58:04

2K+ Views

To know a MySQL table is using MyISAM or InnoDB engine, you can use the command show status table. The syntax is as follows −SHOW TABLE STATUS from yourDatabaseName LIKE ‘yourTableName’.The above syntax tells about the specific table engine. Now you can apply the above syntax to know whether the ... Read More

How to store usernames and passwords safely in MySQL database?

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 12:50:08

11K+ Views

To store username and passwords safely in MySQL database, we can use MD5().Let us see an example. First, we will create a table. The CREATE command is used to create a table.mysql> create table UserNameAndPasswordDemo - > ( - > U_Id int(10) unsigned NOT NULL AUTO_INCREMENT, - > UserId varchar(255) ... Read More

What do column flags mean in MySQL Workbench?

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 12:38:03

3K+ Views

In MySQL Workbench, column flags can be used with a column to maintain integrity. The column flags are as follows −PK − Primary KeyNN − NOT NULLBIN − BinaryUN − UnsignedUQ − UniqueZF − Zero FilledG − Generate ColumnAI − Auto IncrementLet us learn about them one by one −PKThis ... Read More

Fastest way to count number of rows in MySQL table?

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 12:23:37

1K+ Views

Let us first see an example to create a table, add records and display them. The CREATE command is used to create a table.mysql> CREATE table RowCountDemo -> ( -> ID int, -> Name varchar(100) > ); Query OK, 0 rows affected (0.95 sec)Records are inserted with the INSERT command.mysql>INSERT ... Read More

8085 Program to Add N numbers, of size 8 bits

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 12:10:37

6K+ Views

In this program, we will see how to add a block of data using the 8085 microprocessor.Problem StatementWrite 8085 Assembly language program to add N 1-byte numbers. The value of N is provided.DiscussionIn this problem, we are using location 8000H to hold the length of the block. The main block ... Read More

Register codes of 8085 Microprocessor

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 11:57:12

1K+ Views

Using 16-bit address, 8085 can access one of the 216= 64K locations. As a single hexadecimal digit can be expressed in4-bit notation so, in 8085, memory address can be expressed using four hexadecimal digits. Similarly, for convenience, we can represent all 8085 CPU registers as A, B, C etc. using ... Read More

Interrupt mask register in 8259

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 10:58:17

876 Views

It stores the levels of interrupts to be masked by means of storing the bits of the interrupt level already masked. It differs from other registers by means of only masking of the bits. Other processes remained intact. Let’s take for the assumption that the requests to the IR4 AND ... Read More

8085 Program to convert ASCII to HEX

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 10:55:20

2K+ Views

Now let us see a program of Intel 8085 Microprocessor. This program will convert ASCII to HEXvalues.Problem StatementWrite 8085 Assembly language program to convert ASCII to Hexadecimal character values. DiscussionWe know that the ASCII of number 00H is 30H (48D), and ASCII of 09H is39H (57D). So all other numbers are ... Read More

Get floor value of a number using Math.floor in Java

Ankith Reddy

Ankith Reddy

Updated on 26-Jun-2020 10:03:57

458 Views

To get the floor value of a number, we use the java.lang.Math.floor() method. The Math.floor() method returns the largest (closest to positive infinity) double value which is less than or equal to the parameter and has a value which is equal to a mathematical integer on the number line. If ... Read More

Advertisements