Usage of Border Right Style Property in CSS

Samual Sam
Updated on 03-Feb-2020 06:15:08

125 Views

The border-right-style property changes the style of right border. You can try to run the following code to implement the border-right-style property:Example                            This is demo content          

Change the Color of Top Border with CSS

Ankith Reddy
Updated on 03-Feb-2020 06:14:32

175 Views

The border-top-color changes the color of top border. You can try to run the following code to implement the border-top-color property:Example                    p.demo {             border:3px solid;             border-top-color:#FF0000;          }                              Example showing border top color property          

Difference Between MySQL LOCATE and FIND_IN_SET Functions

Monica Mona
Updated on 03-Feb-2020 06:14:05

659 Views

As we know, both the functions are used to search a string from the arguments provided in them but there are some significant differences between them as followsFIND_IN_SET() function uses the string list that is itself a string containing the substring separated by commas. Whereas, LOCATE() function contains a string from which it will find the position of the first occurrence of the substring if present. In LOCATE() function we can manage the starting point of the search by providing an optional argument for a position. Whereas, for FIND_IN_SET() function MySQL do not provide such kind of flexibility and the search ... Read More

Change the Color of the Bottom Border with CSS

Lakshmi Srinivas
Updated on 03-Feb-2020 06:13:49

208 Views

The border-bottom-color changes the color of the bottom border. You can try to run the following code to implement the border-bottom-color property:Example                    p.demo {             border:4px solid;             border-bottom-color:#FF0000;          }                              Example showing border top color property          

Usage of border-top-width Property in CSS

Ankith Reddy
Updated on 03-Feb-2020 06:13:15

58 Views

The border-top-width property changes the width of top border. You can try to run the following code to implement border-top-width property:Example                            This is demo content.          

Manage Start Position in MySQL LOCATE Function

Chandu yadav
Updated on 03-Feb-2020 06:12:45

164 Views

As we know that by default searching in LOCATE() function starts from beginning. We can manage the start position by giving an argument to specify the position from which we want to start the search in string. Following example will demonstrate it −Examplemysql> Select LOCATE('good','Ram is a good boy. Is Ram a good boy?',11)As Result; +--------+ | Result | +--------+ |     29 | +--------+ 1 row in set (0.00 sec)In the above example, we have given the value 11 as the argument for position. It means that MySQL will start searching from 11th position.

MySQL LOCATE Function Returns NULL Output

Kumar Varma
Updated on 03-Feb-2020 06:11:55

358 Views

It will return NULL as the output when the value of either first argument i.e. substring or the value of second argument i.e. substring is NULL. Example below will demonstrate it −Examplemysql> Select LOCATE(NULL,'Ram is a good boy')As Result; +--------+ | Result | +--------+ | NULL   | +--------+ 1 row in set (0.00 sec) mysql> Select LOCATE('Ram',NULL)As Result; +--------+ | Result | +--------+ | NULL   | +--------+ 1 row in set (0.00 sec)

Convert Value Between Number Systems in MySQL

Moumita
Updated on 03-Feb-2020 06:11:19

155 Views

With the help of MySQL CONV() function, a value from one number system can be converted to the other number system.SyntaxCONV(N, from_base, to_base)Here, ‘N’ is the number which is to be converted, ‘from_base’ is the current base of that number and ‘to_base’ is the base in which that number has to be converted. ‘N’ is interpreted as an integer but it may be specified as integer or a string.Examplemysql> Select CONV('10', 10, 2) AS 'DECIMAL TO BINARY'; +-------------------+ | DECIMAL TO BINARY | +-------------------+ | 1010              | +-------------------+ 1 row in set (0.00 sec)In ... Read More

Using Integer Values as Arguments in MySQL LOCATE Function

Manikanth Mani
Updated on 03-Feb-2020 05:54:05

124 Views

MySQL allows us to use integer values as the arguments of the LOCATE() function. We do not need to use quotes. It can be demonstrated with the help of the following example −Examplemysql> Select LOCATE(5,1698235); +-------------------+ | LOCATE(5,1698235) | +-------------------+ |                 7 | +-------------------+ 1 row in set (0.00 sec) mysql> Select LOCATE(56,1698235); +--------------------+ | LOCATE(56,1698235) | +--------------------+ |                  0 | +--------------------+ 1 row in set (0.00 sec) mysql> Select LOCATE(23,1698235); +--------------------+ | LOCATE(23,1698235) | +--------------------+ |                  5 | +--------------------+ 1 row in set (0.00 sec)

Use Enumeration Value in MySQL Expression

varun
Updated on 03-Feb-2020 05:48:16

172 Views

As we know that enumeration values are associated with index values hence if we will use enumeration values in an expression then all the calculations would be done on index numbers. The following example will clarify it −mysql> Select * from Result; +-----+--------+-------+ | Id  | Name   | Grade | +-----+--------+-------+ | 100 | Gaurav | GOOD  | | 101 | Rahul  | POOR  | | 102 | Rahul  | NULL  | | 103 | Mohan  |       | +-----+--------+-------+ 4 rows in set (0.00 sec) mysql> Select SUM(Grade) from result; +------------+ | SUM(Grade) | +------------+ ... Read More

Advertisements