Sai Subramanyam has Published 80 Articles

How can I update MySQL table after quoting the values of a column with a single quote?

Sai Subramanyam

Sai Subramanyam

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

881 Views

As we know that with the help of QUOTE() function we can put the values of a column in single quotes. By using QUOTE() function with UPDATE clause we can update the table having quoted values. We need to give column name as the parameter of QUOTE() function. Following example ... Read More

What happens if a NULL argument is provided in MySQL CONV() function?

Sai Subramanyam

Sai Subramanyam

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

161 Views

MySQL will return NULL as the output if any of the argument of CONV() function is NULL or if the value provided for the base is out of limit(i.e. not between minimum 2 and maximum 36). Following examples would demonstrate it. Example mysql> Select CONV(10, NULL, 2); +-----------------+ | ... Read More

How can I use a SELECT statement as an argument of MySQL IF() function?

Sai Subramanyam

Sai Subramanyam

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

593 Views

It is quite possible to use a SELECT statement as the first argument of MySQL IF() function. To make it understand, consider the data as follows from table ‘Students’. mysql> Select * from Students; +----+-----------+-----------+----------+----------------+ | id | Name | Country | ... Read More

When should I use an Inline script and when to use external JavaScript file?

Sai Subramanyam

Sai Subramanyam

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

2K+ Views

To enhance performance, try to keep JavaScript external. The separate code makes it easier for web browsers to cache. However, use inline scripts only when you’re making single page websites. Still, it's better to use external code i.e. external JavaScript. To place JavaScript in external file create an external JavaScript ... Read More

How to offset an outline and draw it beyond the border edge with JavaScript?

Sai Subramanyam

Sai Subramanyam

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

246 Views

To offset an outline, use the outlineOffsetproperty. It allows you to draw the outline beyond the border edge. You can try to run the following code to offset an outline and draw it beyond the border edge with JavaScript. Example Live Demo ... Read More

In the query [SELECT column1, column2 FROM table_name WHERE condition; ] which clause among ‘SELECT’, ‘WHERE’ and ‘FROM’ is evaluated in the last by the database server and why?

Sai Subramanyam

Sai Subramanyam

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

527 Views

As we know that SELECT clause is used to show all the rows and columns hence SELECT clause is evaluated in the last by the database server.

How changes, made in the current transaction, can be permanently eliminated from MySQL database?

Sai Subramanyam

Sai Subramanyam

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

160 Views

We can use ROLLBACK command to eliminate the changes, made in a current transaction, permanently from MySQL database. Suppose if we run some DML statements and it updates some data objects, then ROLLBACK command will eliminate these updates permanently from the database. Example Suppose we have the following data in ... Read More

What will happen when [50,100] is converted to Number in JavaScript?

Sai Subramanyam

Sai Subramanyam

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

156 Views

Use the Number() method in JavaScript to convert to Number. You can try to run the following code to learn how to convert [50, 100] to Number in JavaScript − Example Live Demo Convert [50,100] to Number var myVal = [50,100]; document.write("Number: " + Number(myVal));

How are variables allocated memory in JavaScript?

Sai Subramanyam

Sai Subramanyam

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

438 Views

JavaScript handling of the variable is different from other programming languages C, C++., Java, etc. Variables in JavaScript can be thought of as named containers. You can place data into these containers and then refer to the data simply by naming the container. Before you use a variable in a ... Read More

How can I search data from MySQL table based on similar sound values?

Sai Subramanyam

Sai Subramanyam

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

156 Views

With the help of SOUNDS LIKE operator, MySQL search the similar sound values from the table. Syntax Expression1 SOUNDS LIKE Expression2 Here, both Expression1 and Expression2 will be compared based on their English pronunciation of sound. Example Following is an example from ‘student’ table which will match the ... Read More

Advertisements