Arjun Thakur has Published 1109 Articles

Does MySQL foreign_key_checks affect the entire database?

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 12:32:00

4K+ Views

The foreign_key_checks are session based. Now, we can say that they are for scope i.e. local or global. Here is an example demo of local or global. Both are scopes and we can set this for session.Let us set the scope −mysql> set foreign_key_checks = 0; Query OK, 0 rows ... Read More

How to check similarity between two strings in MySQL?

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 12:27:33

1K+ Views

Similarity between two strings can be checked with the help of ‘strcmp()’ function. Here are the conditions.If both strings are equal, then it returns 0.If first string is less than the second string, it returns -1.If first string is greater than the second string, it returns 1.Here is an example.Case ... Read More

Which one is better in MySQL - NULL or empty string?

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 12:24:27

310 Views

The choice depends upon the database. In ORACLE database, an empty string is converted to NULL.In MySQL, the usage of an empty string is better as compared to NULL. It is easy to check for an empty string with some boundary conditions, while this cannot be done with NULL. To ... Read More

Absolute addressing mode in 8085 Microprocessor

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 11:07:03

2K+ Views

In this mode, the data is directly copied from the given address to the register. This absolute addressing mode is also called a direct addressing mode. For example LDA 3000H: means the data at address 3000H is copied to register A.LDA 4050HLet us consider LDA 4050 Has an example instruction ... Read More

Interrupt request register in 8259

Arjun Thakur

Arjun Thakur

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

697 Views

An 8-bit register in which the tracks of active interrupt requests are kept. Whenever activation of an interrupt request input is done the bit corresponding in IRR register is set to 1. For example, if we activate the IR4 and IR6 inputs bits no 4 and 6 of IRR are set to ... Read More

Programming the 8259 with no slaves

Arjun Thakur

Arjun Thakur

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

164 Views

Now in this topic we assume that 8085 is the processor which is used in this microcomputer system. In this slave, no 8259 slaves are used. We should examine properly before 8259 PIC is used in the microcomputer system for performing the interrupt control application. 8259 is configured in such ... Read More

Check if the String contains only unicode letters and space in Java

Arjun Thakur

Arjun Thakur

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

1K+ Views

In order to check if a String has only unicode letters in Java, we use the isDigit() and charAt() methods with decision making statements.The isLetter(int codePoint) method determines whether the specific character (Unicode codePoint) is a letter. It returns a boolean value, either true or false.Declaration − The java.lang.Character.isLetter() method ... Read More

Get power using Math.pow in Java

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 10:01:34

379 Views

In order to get the power of a number in Java, we use the java.lang.Math.pow() method. The Math.pow(double a, double b) method accepts two arguments of the double data type and returns a value of the first parameter raised to the power of the second argument.Declaration - The java.lang.Math.pow() method ... Read More

Get the hyperbolic sine of a given value in Java

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 09:58:43

165 Views

In order to get the hyperbolic sine of a given value in Java, we use the java.lang.Math.sinh() method. The sinh() method accepts an argument in radians and returns the hyperbolic sine of the argument which acts as the angle.Declaration −  The java.lang.Math.sinh() is declared as follows −public static double sinh(double ... Read More

Get the hyperbolic tangent of a given value in Java

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 09:54:43

153 Views

In order to get the hyperbolic tangent of a given value in Java, we use the java.lang.Math.tanh() method. The tanh() method accepts an argument in radians and returns the hyperbolic tan of the argument which acts as the angle.Declaration −The java.lang.Math.tanh() is declared as follows −public static double tanh(double x)where, ... Read More

Advertisements