Nishtha Thakur has Published 564 Articles

How can we escape special characters in MySQL statement?

Nishtha Thakur

Nishtha Thakur

Updated on 22-Jun-2020 12:24:08

911 Views

Sometimes we need to include special characters in a character string and at that time they must be escaped or protected. We need to pursue some basic rules for escaping special characters which are given below −The escape character (\) can be escaped as (\)Examplemysql> Select 'A\B'; +-----+ | A\B ... Read More

How can I combine built-in-commands (g and G), used for executing a MySQL statement, with termination symbol semicolon (;) to get output without any error?

Nishtha Thakur

Nishtha Thakur

Updated on 22-Jun-2020 11:20:38

70 Views

As we know that built-in-commands (\G and \g) send the command to MySQL server for execution and with the help of Semicolon (;) MySQL determines the end of the statement. It is also known that both of them have different format of the result set. For combining them and getting ... Read More

What are the most significant differences between MySQL functions and procedures?

Nishtha Thakur

Nishtha Thakur

Updated on 22-Jun-2020 07:49:46

4K+ Views

The most significant difference between procedures and functions is that they are invoked differently and for different purposes. Other than that following are the differences between procedure and functions −A procedure does not return a value. Instead, it is invoked with a CALL statement to perform an operation such as ... Read More

In MySQL, how can we declare a handler while handling errors?

Nishtha Thakur

Nishtha Thakur

Updated on 22-Jun-2020 06:33:33

434 Views

It is very important to handle the errors by throwing a proper error message. MySQL provides a handler to handle the error. We can declare a handler with the help of the following syntax −Syntax of handlerDECLARE handler_action FOR condition_value statement;The above syntax shows that we need to use DECLARE ... Read More

How can I create MySQL stored procedure with INOUT parameter?

Nishtha Thakur

Nishtha Thakur

Updated on 22-Jun-2020 05:25:09

1K+ Views

Following example will demonstrate MySQL stored procedure with INOUT parameter −mysql> DELIMITER // ; mysql> Create PROCEDURE counter(INOUT count INT, IN increment INT)     -> BEGIN     -> SET count = count + increment;     -> END // Query OK, 0 rows affected (0.03 sec)Here, ‘count’ is the ... Read More

Light Speed Out Animation Effect with CSS

Nishtha Thakur

Nishtha Thakur

Updated on 20-Jun-2020 06:20:40

196 Views

To create a light speed out effect with CSS, you can try to run the following code:Live Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;         ... Read More

What is onmouseenter event in JavaScript?

Nishtha Thakur

Nishtha Thakur

Updated on 19-Jun-2020 11:06:58

201 Views

The onmouseenter event triggers when you mouse hover the pointer.ExampleYou can try to run the following code to learn how to work with onmouseenter event in JavaScript −                                         This is demo text for mouseenter event.    

What are JavaScript Math Functions?

Nishtha Thakur

Nishtha Thakur

Updated on 19-Jun-2020 08:27:12

316 Views

The following are some of the Math Functions in JavaScript −S.NoMethod & Description 1abs()Returns the absolute value of a number.2acos()Returns the arccosine (in radians) of a number.3asin()Returns the arcsine (in radians) of a number.4atan()Returns the arctangent (in radians) of a number.5atan2()Returns the arctangent of the quotient of its arguments.6ceil()Returns the smallest ... Read More

How to initialize memory with a new operator in C++?

Nishtha Thakur

Nishtha Thakur

Updated on 19-Jun-2020 05:22:14

804 Views

The new operator in C++ is defined for allocating memory and not initializing. If you want to allocate an array of type int with the new operator, and you want to initialize them all to the default value(ie 0 in case of ints), you can use the following syntax −Syntaxnew ... Read More

Core Java interview questions

Nishtha Thakur

Nishtha Thakur

Updated on 17-Jun-2020 13:53:41

536 Views

There are many sites which are a good resource for java interview questions-answers. Following is the list of most popular websites.Tutorialspoint - www.tutorialspoint.comStackOverflow - www.stackoverflow.comDZone - www.dzone.comWikipedia - www.wikipedia.orgIBM Developer Works - www.ibm.com/developerworks/java/TechGig - www.techgig.comGitHub - www.github.comJava  documentation - docs.oracle.com/javase/Coursera - www.coursera.org/JavaWorld - www.javaworld.com/Read More

Previous 1 ... 5 6 7 8 9 ... 57 Next
Advertisements