Sai Subramanyam has Published 99 Articles

What is MySQL INTERVAL() function?

Sai Subramanyam

Sai Subramanyam

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

501 Views

MySQL INTERVAL() function returns the index value of the argument which is greater than the first argument. Syntax INTERVAL(N, N1, N2, N3, …) Here, this function will compare 1st argument i.e. N with the other arguments i.e. N1, N2, N3 and so on. All the arguments are treated ... Read More

How to set the width of an element's border with JavaScript?

Sai Subramanyam

Sai Subramanyam

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

1K+ Views

To set the width of an element’s border in JavaScript, use the borderWidth property. Set the width using this property. You can try to run the following code to learn how to set the width of an element’s border − Example Live Demo ... Read More

What would be the effect on MySQL output if we have the combination of NULL and other values in the list of strings, provided as arguments in FIELD() function?

Sai Subramanyam

Sai Subramanyam

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

87 Views

There will be a significant change in the output if we have the combination of NULL and other values in the list of strings, provided as arguments in FIELD() function. Following example will demonstrate it Example mysql> Select FIELD('good', 'Ram', 'is', 'good', 'boy'); +---------------------------------------+ | FIELD('good', 'Ram', 'is', 'good', ... Read More

How to show a while loop using a flow chart in JavaScript?

Sai Subramanyam

Sai Subramanyam

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

280 Views

The purpose of a while loop is to execute a statement or code block repeatedly as long as an expression is true. Once the expression becomes false, the loop terminates. Let’s see how to show while loop using flowchart in JavaScript −

How to set outline color with JavaScript?

Sai Subramanyam

Sai Subramanyam

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

505 Views

To set outline color, use the outlineColor property in JavaScript. You can try to run the following code to learn how to implement outlineColor property − Example Live Demo #box ... Read More

How can we create a MySQL view with GROUP BY clause?

Sai Subramanyam

Sai Subramanyam

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

2K+ Views

We can use GROUP BY to group values from a column, and, if we want, we can perform calculations on that column. You can use COUNT, SUM, AVG, etc., functions on the grouped column. To understand GROUP BY clause with views we are creating a view named ‘Info’ using the ... Read More

What are the drawbacks of using test database?

Sai Subramanyam

Sai Subramanyam

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

211 Views

There is a database named test in the list of databases displayed by the statement SHOW DATABASES. We can use test database but the main disadvantage is that anything created in this database can be removed/changed by anyone else with access to it. To avoid this we should take permission ... Read More

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

814 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

131 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 to set the font size of text with JavaScript?

Sai Subramanyam

Sai Subramanyam

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

906 Views

To set the font size, use the fontSize property in JavaScript. You can try to run the following code to set the font size of the text with JavaScript − Example Live Demo Heading 1 ... Read More

Previous 1 ... 3 4 5 6 7 ... 10 Next
Advertisements