Mkotla has Published 100 Articles

How to write a MySQL stored function that updates the values in a table?

mkotla

mkotla

Updated on 13-Feb-2020 06:59:33

972 Views

As we know that function is best used when we want to return a result. Hence, when we will create stored functions for manipulating tables like to Insert or Update values then it would be more or less like stored procedures. In the following example, we are creating a stored ... Read More

How can I get the list of columns from a table in the other database than weare currently using IN operator?

mkotla

mkotla

Updated on 12-Feb-2020 05:24:22

44 Views

It can be done with the SHOW COLUMNS statement. Its Syntax would be as follows:SyntaxSHOW COLUMNS FROM tab_name IN db_nameHere,  tab_name is the name of the table from which we want to see the list of columns.Db_name is the name of the database, in which the table is storedExampleIn the ... Read More

How can we return to windows command shell from MySQL command line tool?

mkotla

mkotla

Updated on 11-Feb-2020 07:08:22

258 Views

The EXIT or QUIT commands take you returned to windows from MySQL command line tool.mysql> EXITORmysql> QUIT

How can we write MySQL query for inner joins with the help of Comma operator?

mkotla

mkotla

Updated on 07-Feb-2020 11:08:27

113 Views

Writing inner joins with the help of comma operator is the most basic way to combine two tables. As we know that we can also write inner join by using keyword INNER JOIN or synonyms like JOIN. To form an inner join we need to specify a particular condition which ... Read More

Decorate a text in CSS

mkotla

mkotla

Updated on 31-Jan-2020 06:38:41

148 Views

To decorate a text in CSS, use the text-decoration property. The following example demonstrates how to decorate a text. Possible values are none, underline, overline, line-through, blink.                            This will be underlined                      This will be striked through.                      This will have a over line.                      This text will have blinking effect          

Underline text with CSS

mkotla

mkotla

Updated on 31-Jan-2020 06:06:34

923 Views

Use the text-decoration property to underline text with CSS. You can try to run the following code to underline text:                            India          

Set the Background Image Position with CSS

mkotla

mkotla

Updated on 30-Jan-2020 09:20:57

420 Views

To set the background image position, use the background-position property. You can try to run the following code to learn how to work with the background-position property:ExampleIt sets the background image position 80 pixels away from the left side:                    body { ... Read More

How to set font size using CSS Measurement Unit vmin?

mkotla

mkotla

Updated on 30-Jan-2020 08:43:49

153 Views

To set font size with CSS Measurement Unit vmin, try to run the following code:                            This div has relative positioning.          

How to define a measurement in screen pixels with CSS?

mkotla

mkotla

Updated on 30-Jan-2020 07:27:48

139 Views

To define a measurement in screen pixels with CSS, use the px unit.Let us see an example:                            This div has relative positioning.          

What MySQL returns if I write only one value in the enclosed set of unit values for compound INTERVAL unit?

mkotla

mkotla

Updated on 30-Jan-2020 05:20:18

51 Views

In this case, MySQL will take into consideration right most unit given in compound INTERVAL unit. It will return the output after calculating the interval on the basis of single value provided in the enclosed set of unit values. The following example will clarify it −mysql> Select TIMESTAMP('2017-10-22 04:05:36' + ... Read More

Advertisements