V Jyothi has Published 87 Articles

How to define custom JavaScript exceptions?

V Jyothi

V Jyothi

Updated on 23-Jun-2020 06:33:30

97 Views

To learn how to define and implement custom JavaScript exceptions, you can try to run the following code −Example                                         Click the following to see the result:                          

How can I delete MySQL temporary table?

V Jyothi

V Jyothi

Updated on 22-Jun-2020 13:07:23

419 Views

As we know that MySQL temporary table would be deleted if the current session is terminated. But of still in between the session we want to delete the temporary table than with the help of the DROP statement we can delete the temporary table. It can be understood with the ... Read More

How can we match the values having backslashes, like ‘a\\b’, from MySQL column?

V Jyothi

V Jyothi

Updated on 22-Jun-2020 12:27:40

606 Views

With the help of an RLIKE operator, we can perform such kind of matching. The only concept is about to use a number of backslashes in MySQL query. The example below will make it clearer −We have the following table having values such as ‘a\b’ and ‘a\b’.mysql> select * from ... Read More

What role data type plays when I insert an empty string into a MySQL column which is declared as NOT NULL?

V Jyothi

V Jyothi

Updated on 22-Jun-2020 11:43:04

68 Views

The representation of an empty string in result set depends on data type when we insert an empty string into a MySQL column which is declared as NOT NULL. As we know that on inserting empty string we are providing value to MySQL that has integer representation as INT 0.Now, ... Read More

Instead of using a semicolon (;) terminator symbol, is there any other built-in-commands which execute the MySQL query?

V Jyothi

V Jyothi

Updated on 22-Jun-2020 11:25:59

627 Views

With the help of the following built-in commands, MySQL can execute a query even if semicolon (;) terminator symbol is not used.egoWe can use this command by using \G option. It means to send the current statement to the server to be executed and display the result in vertical format. ... Read More

In a Multiple-line query, what is the significance of the change of MySQL prompt after the first line?

V Jyothi

V Jyothi

Updated on 22-Jun-2020 10:47:10

37 Views

After writing the first line of multiple-line queries, MySQL changes promptly from ‘mysql>’ to ‘→’. It is significant because with the help of it we got an indication that MySQL has not seen a complete statement yet and is waiting for the rest. Consider the example below, mysql> Select * ... Read More

How can we see the list, along with some other information, of stored functions in a particular MySQL database?

V Jyothi

V Jyothi

Updated on 22-Jun-2020 07:57:26

47 Views

We can see the list, along with other information, of stored functions in a particular MySQL database by the following query −mysql> SHOW FUNCTION STATUS WHERE db = 'query'\G *************************** 1. row ***************************                   Db: query             ... Read More

How can I get all the records of a table by passing its name as the parameter of MySQL stored procedure?

V Jyothi

V Jyothi

Updated on 22-Jun-2020 06:52:26

251 Views

Suppose if we want to see all the records of a table by passing its name as the parameter of a stored procedure then following example will create a procedure named ‘details’ which accepts the name of the table as its parameter −mysql> DELIMITER // mysql> Create procedure details(tab_name Varchar(40)) ... Read More

How can we see only name and types of the stored routines in a particular MySQL database?

V Jyothi

V Jyothi

Updated on 22-Jun-2020 05:16:12

66 Views

We can write the following query to see only the name and types of procedures in a particular MySQL database. To make it understand we are using the database named ‘query’ −mysql> Select Name, Type from mysql.proc where db = 'query'; +------------+-----------+ | Name       | Type   ... Read More

How can we set up a MySQL User account by using INSERT INTO statement?

V Jyothi

V Jyothi

Updated on 20-Jun-2020 13:19:29

2K+ Views

For adding a new user to MySQL, we just need to add a new entry to the user table in the database mysql. To illustrate it we are using the following example −ExampleThe following program is an example of adding a new user guest with SELECT, INSERT and UPDATE privileges with ... Read More

Advertisements