Radhakrishna has Published 93 Articles

What are the different modes of parameters used by MySQL stored procedure?

radhakrishna

radhakrishna

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

1K+ Views

Parameters make the stored procedure more useful and flexible. In MySQL, we have the following three kinds of modes −IN modeIt is the default mode. When we define an IN parameter in a stored procedure, the calling program has to pass an argument to the stored procedure. The value of an ... Read More

Matrix Transform in another direction with CSS

radhakrishna

radhakrishna

Updated on 20-Jun-2020 14:36:17

39 Views

You can try to run the following code to matrix transform in another direction with CSS:ExampleLive Demo                    div {             width: 300px;             height: 100px;             background-color: pink;             border: 1px solid black;          }          div#myDiv2 {             /* IE 9 */             -ms-transform: matrix(1, 0, 0.5, 1, 150, 0);             /* Safari */             -webkit-transform: matrix(1, 0, 0.5, 1, 150, 0);             /* Standard syntax */             transform: matrix(1, 0, 0.5, 1, 150, 0);          }                              Tutorialspoint.com                      Tutorialspoint.com           Output

How can we get “MySQL server-side help”?

radhakrishna

radhakrishna

Updated on 20-Jun-2020 13:57:21

109 Views

MySQL provides help command to get server-side help. The syntax of this command is as follows −mysql> help search_stringMySQL uses the argument of help command as the search string for accessing the contents of MySQL reference manual. The search will fail if there would be no match for the search ... Read More

How can we set up a MySQL User account by using SQL GRANT statement?

radhakrishna

radhakrishna

Updated on 20-Jun-2020 13:16:33

100 Views

We can also add user account by using GRANT SQL command. It can be illustrated by using the following example −ExampleIn this example, we will add user Zara with password zara123 for a particular database, which is named as TUTORIALS.root@host# mysql -u root -p password; Enter password:******* mysql> use mysql; Database changed ... Read More

Which tables are used to control the privileges of MySQL database server?

radhakrishna

radhakrishna

Updated on 20-Jun-2020 11:50:56

147 Views

When we install MySQL server, a database named MySQL created automatically. This MySQL database contains five main grant tables with the help of which MySQL server can control the privileges of MySQL database server. These tables are as follows −user tableThis table contains user account and global privileges columns. MySQL uses the ... Read More

How can we use SET statement to assign a SELECT result to a MySQL user variable?

radhakrishna

radhakrishna

Updated on 20-Jun-2020 10:48:08

441 Views

For using the SET statement to assign a SELECT result to a user variable we need to write the SELECT statement as a subquery within parentheses. The condition is that the SELECT statement must have to return a single value. To make it understand we are using the data from ... Read More

A scale transform the element by using x-axis with CSS3

radhakrishna

radhakrishna

Updated on 20-Jun-2020 08:55:28

110 Views

The scaleX(x) method is used to scale transform the element using x-axis.Let us see the syntax −scaleX(x)Here, x is a number representing the scaling factor to apply on the abscissa of each point of the element.Let us see an example −div {    width: 60px;    height: 60px;    background-color: ... Read More

What is the use of MySQL LAST_INSERT_ID() function?

radhakrishna

radhakrishna

Updated on 20-Jun-2020 07:37:53

193 Views

MySQL LAST_INSERT_ID() function is used to obtain the most recent generated sequence number by AUTO_INCREMENT.ExampleIn this example, we are creating a table named ‘Student’ having an AUTO_INCREMENT column. We insert two values in the column ‘Name’ and when we use INSERT_LAST_ID() function then it returns the most recent generated sequence ... Read More

What MySQL returns if we include date components along with time component as an argument to TIMEDIFF() function?

radhakrishna

radhakrishna

Updated on 20-Jun-2020 06:28:42

50 Views

MySQL would return the output in time value after converting the difference between date-and-time values being provided to TIMEDIFF() function as arguments.Example mysql> Select TIMEDIFF('2017-10-22 04:05:45', '2017-10-21 03:04:44')AS 'Difference in Time'; +--------------------+ | Difference in Time | +--------------------+ | 25:01:01           | +--------------------+ 1 row in set ... Read More

What is the difference between CHAR and VARCHAR in MySQL?

radhakrishna

radhakrishna

Updated on 19-Jun-2020 13:27:55

4K+ Views

CHAR and VARCHAR are both ASCII character data types and almost same but they are different at the stage of storing and retrieving the data from the database. Following are some important differences between CHAR and VARCHAR in MySQL −CHAR Data TypeVARCHAR Data TypeIts full name is CHARACTERIts full name ... Read More

Advertisements