Radhakrishna has Published 61 Articles

What are the special security requirements for using stored procedures and functions together with replication?

radhakrishna

radhakrishna

Updated on 22-Jun-2020 07:23:52

271 Views

Actually, a MySQL slave server has the authority to execute any statement read from a master's MySQL server binary log, hence some special security constraints exist for using stored functions with replication. If replication or binary logging in general (for the purpose of point-in-time recovery) is active, then MySQL DBAs ... Read More

Set the height and width of an image using percent with CSS

radhakrishna

radhakrishna

Updated on 22-Jun-2020 05:35:38

1K+ Views

To set the height and width of an image using %, you can try to run the following code −ExampleLive Demo                    img {             height: 50%;             width: 50%;          }                     Sized image in %          

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

radhakrishna

radhakrishna

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

2K+ 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

113 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

222 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

198 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

346 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

637 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

What is the use of MySQL LAST_INSERT_ID() function?

radhakrishna

radhakrishna

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

349 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 is the difference between CHAR and VARCHAR in MySQL?

radhakrishna

radhakrishna

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

5K+ 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