Varun has Published 88 Articles

Valid variant of Main() in C#

varun

varun

Updated on 22-Jun-2020 12:01:04

379 Views

The Main method is the entry point for all C# programs. It states what the class does when executed.The valid variant of Main() is −static void Main(string[] argsHere, static − the object is not needed to access static membersvoid − return type of the methodMain − entry point for any ... Read More

CSS Descendant Selector

varun

varun

Updated on 22-Jun-2020 10:58:36

209 Views

The descendant selector in CSS is used to match all elements that are descendants of a specified element.ExampleYou can try to run the following code to implement CSS Descendent Selector:Live Demo                    div p {           ... Read More

How can we change the data type of the column in MySQL table?

varun

varun

Updated on 22-Jun-2020 08:32:21

1K+ Views

It can be done with the help of ALTER TABLE command of MySQL. Consider the table ‘Student’ in which the data type of ‘RollNo’ column is declared as Integer, can be seen from the following query −mysql> DESCRIBE Student; +--------+-------------+------+-----+---------+-------+ | Field  | Type        | Null | ... Read More

Create a MySQL stored procedure that generates five random numbers?

varun

varun

Updated on 22-Jun-2020 08:14:24

420 Views

With the help of the following query we can create a stored procedure to generate five random numbers −mysql> DELIMITER // mysql> DROP PROCEDURE IF EXISTS RandomNumbers;     -> CREATE PROCEDURE RandomNumbers()     -> BEGIN     -> SET @i = 0;     -> REPEAT     ... Read More

Why is it necessary to declare NOT FOUND handler while using MySQL cursor?

varun

varun

Updated on 22-Jun-2020 07:30:18

1K+ Views

We must have to declare NOT FOUND handler while working with MySQL cursor because it handles the situation when cursor could not find any row. It also handles the situation when the cursor reaches the end of the row because every time we call FETCH statement the cursor finds to ... Read More

List with a blue left border using CSS

varun

varun

Updated on 22-Jun-2020 06:46:14

112 Views

To add a blue left border to a list in CSS, you can try to run the following code −ExampleLive Demo                    ul {             border-left: 3px solid blue;             background-color: #gray;          }                     Countries                India          US          Australia           Output

How can local variables be used in MySQL stored procedure?

varun

varun

Updated on 22-Jun-2020 05:33:29

282 Views

Local variables are those variables that are declared within the stored procedure. They are only valid within the BEGIN…END block where they are declared and can have any SQL data type. To demonstrate it, we are creating the following procedure −mysql> DELIMITER // ; mysql> Create Procedure Proc_Localvariables()    -> ... Read More

How can we run MySQL statements in batch mode?

varun

varun

Updated on 22-Jun-2020 05:00:18

268 Views

We need to create a .sql file for running MySQL in batch mode. This file will contain the MySQL statements. Suppose I have hh.sql file in which I have written the statement select * from hh. With the help of the following command, we can run this file in batch ... Read More

Z-axis 3D transform with CSS3

varun

varun

Updated on 21-Jun-2020 07:31:27

173 Views

You can try to run the following code to implement Z-axis 3D transform with CSS3:ExampleLive Demo                    div {             width: 200px;             height: 100px;             background-color: pink;             border: 1px solid black;          }          div#zDiv {             -webkit-transform: rotateZ(90deg);             /* Safari */             transform: rotateZ(90deg);             /* Standard syntax */          }                     rotate Z axis                tutorialspoint.com.           Output

CSS text-emphasis property

varun

varun

Updated on 20-Jun-2020 13:29:47

93 Views

Used to emphasis text and color. Let us see an example:text-emphasis: text-emphasis-style text-emphasis-color;Here,text-emphasis-color: foreground color of the emphasis marktext-emphasis-style: emphasis marks on the element's text

Advertisements