Chandu yadav has Published 1091 Articles

What MySQL INSERT() function returns if the number of characters to be removed exceeds the number of characters available in original string?

Chandu yadav

Chandu yadav

Updated on 06-Feb-2020 06:20:16

95 Views

In case if the number of characters to be removed exceeds the number of characters available in original string then MySQL INSERT() function will continue to remove the characters until the end of the original string.Examplemysql> Select INSERT('myteststring', 3, 15, 'original'); +----------------------------------------+ | INSERT('myteststring', 3, 15, 'original') | +----------------------------------------+ ... Read More

What MySQL returns on running the INSERT INTO statement without giving the column name and values both?

Chandu yadav

Chandu yadav

Updated on 05-Feb-2020 10:08:58

216 Views

When we run the INSERT INTO statement without giving the columns name/s and values both then MySQL will store NULL as the value of the column/s of table. Consider the example given below in which we have created a table ‘Student’ with the following query −mysql> Create table Student(RollNO INT, ... Read More

How can we use MySQL INSTR() function with WHERE clause?

Chandu yadav

Chandu yadav

Updated on 04-Feb-2020 06:10:29

1K+ Views

When we use INSTR() function with MySQL WHERE clause, we need to provide column name of the table as the first argument and the substring as second argument along with a comparison operator. Following is an example using ‘Student’ table to demonstrate it −ExampleSuppose we have the following values in ... Read More

Usage of CSS list-style-position property

Chandu yadav

Chandu yadav

Updated on 03-Feb-2020 07:32:59

92 Views

The list-style-position property indicates whether the marker should appear inside or outside of the box containing the bullet points. If the text goes onto a second line, the text will wrap underneath the marker, for the value inside.Example If the text goes onto a second line, the text will be aligned with ... Read More

Set image for bullet style with CSS

Chandu yadav

Chandu yadav

Updated on 03-Feb-2020 07:09:41

489 Views

The list-style-image allows you to specify an image so that you can use your own bullet style.ExampleYou can try to run the following code to set an image for bullet with CSS                            Football          Cricket          

Set the top margin of an element with CSS

Chandu yadav

Chandu yadav

Updated on 03-Feb-2020 06:58:49

105 Views

The margin-top specifies the top margin of an element. It can have a value in length, % or auto. You can try to run the following code to set the top margin:Example                            This is a paragraph with ... Read More

Usage of border-bottom-width property in CSS

Chandu yadav

Chandu yadav

Updated on 03-Feb-2020 06:17:24

62 Views

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

How can I manage the start position of searching in MySQL LOCATE() function?

Chandu yadav

Chandu yadav

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

145 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. ... Read More

Usage of border-left-style property in CSS

Chandu yadav

Chandu yadav

Updated on 31-Jan-2020 10:38:02

119 Views

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

Usage of border-bottom-color property in CSS

Chandu yadav

Chandu yadav

Updated on 31-Jan-2020 10:23:19

62 Views

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

Advertisements