Lakshmi Srinivas has Published 287 Articles

How to set all the border bottom properties in one declaration in JavaScript DOM?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 23-Jun-2020 11:07:31

148 Views

To set the border bottom properties in one declaration in JavaScript, use the borderBottom property. It allows you to set the border-bottom-width, border-bottom-style, and border-bottom-color.ExampleYou can try to run the following code to learn how to set border bottom properties −Live Demo             ... Read More

For Hosts Locale how to convert a string to lowercase letters in JavaScript?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 23-Jun-2020 07:46:38

158 Views

To convert a string to lowercase letters in JavaScript, use the toLocaleLowerCase() method.ExampleYou can try to run the following code to learn how to work with toLocaleLowerCase() method in JavaScript −Live Demo                    var a = "WELCOME!";          document.write(a.toLocaleLowerCase());          

What is MySQL GENERATED COLUMN and how to use it while creating a table?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 22-Jun-2020 14:30:09

1K+ Views

Basically generated columns are a feature that can be used in CREATE TABLE or ALTER TABLE statements and is a way of storing the data without actually sending it through the INSERT or UPDATE clause in SQL. This feature has been added in MySQL 5.7. A generated column works within ... Read More

How can we see the metadata of a view(s) stored in a particular MySQL database?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 22-Jun-2020 13:45:15

235 Views

The INFORMATION_SCHEMA database has a VIEWS table that contains view metadata i.e. data about views. To illustrate it we are taking the example of a view named ‘Info’.ExampleThe following query will show the metadata of a view named ‘Info’ −mysql> SELECT * from INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'Info' AND TABLE_SCHEMA ... Read More

What are the different privileges required for using views?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 22-Jun-2020 13:20:14

176 Views

Following privileges are required for a different kind of CREATE, REPLACE, DROP, ACCESS, UPDATE etc. of usage of views − CREATE VIEW Privilege − CREATE VIEW privilege is required to create a view. Along with this we must have sufficient privileges, like SELECT, INSERT or UPDATE, for accessing the tables to ... Read More

How can we create a MySQL one-time event that executes immediately?

Lakshmi Srinivas

Lakshmi Srinivas

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

870 Views

As we know a one-time event means the events that will be executed only once on a particular schedule. To illustrate the creation of such kind of events we are using the following example in which we are creating an event which will execute at the current time −Examplemysql> Create ... Read More

How MySQL NULLIF() control flow function is similar to CASE statement?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 22-Jun-2020 06:56:34

130 Views

As we know that MySQL NULLIF() control flow function will return NULL if both the arguments are the same, otherwise it returns the first argument. Hence it is similar to the following CASE statement −CASE WHEN expression1=expression2 THEN NULL ELSE Expression2 END.

How can we get some last number of characters from the data stored in a MySQL table’s column?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 22-Jun-2020 05:15:20

146 Views

To get some last number of characters from the data stored in MySQL table’s column, we can use MySQL RIGHT() function. It will return the number of characters specified as it argument. We need to provide the name of the column, having the particular record from which we want to ... Read More

How MySQL evaluates if I try to add two numbers that are contained in quotes?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 20-Jun-2020 13:46:39

104 Views

If we are trying to add two numbers that are contained in quotes, means we are treating the string as a number. In this case, MySQL converts the value into the closet numeric equivalent and evaluates the result. Following example will demonstrate it.Examplemysql> Select '1525' + '200'As Total; +-------+ | ... Read More

When MySQL SUBSTRING_INDEX() function returns the same string, provided in the argument, as output?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 20-Jun-2020 11:30:02

182 Views

MySQL SUBSTRING_INDEX() function will return the same string as output if the argument ‘count’ has the value greater than the total number of occurrences of delimiter. It can be demonstrated with the following example −mysql> Select SUBSTRING_INDEX('www.google.co.in', '.', 4); +-------------------------------------------+ | SUBSTRING_INDEX('www.google.co.in', '.', 4) | +-------------------------------------------+ | www.google.co.in     ... Read More

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