Vanithasree has Published 85 Articles

What are the synonym statements of MySQL DESCRIBE?

vanithasree

vanithasree

Updated on 22-Jun-2020 08:37:27

180 Views

Followings are the synonyms statements of MySQL DESCRIBE i.e. the statements with the help of which we can get the same kind of information/structure of the table as we get from DESCRIBE −EXPLAIN StatementEXPLAIN is the synonym of the DESCRIBE statement. Its syntax is also similar to the DESCRIBE statement. ... Read More

How can we alter a MySQL stored function?

vanithasree

vanithasree

Updated on 22-Jun-2020 08:02:48

245 Views

If we have ALTER ROUTINE privileges then we can alter MySQL stored function with the help of ALTER FUNCTION query. Its syntax is as follows −SyntaxALTER FUNCTION function_name [characteristic ...] characteristic:    { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA } | SQL SECURITY ... Read More

Create a procedure to find out the factorial of a number?

vanithasree

vanithasree

Updated on 22-Jun-2020 07:21:33

3K+ Views

It can be created with the help of the following query −mysql> Delimiter // mysql> CREATE PROCEDURE fact(IN x INT)     -> BEGIN     -> DECLARE result INT;     -> DECLARE i INT;     -> SET result = 1;     -> SET i = 1; ... Read More

How can I create MySQL stored procedure with OUT parameter?

vanithasree

vanithasree

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

3K+ Views

To make it understand we are using the table named ‘student_info’ which have the following values −mysql> Select * from student_info; +------+---------+------------+------------+ | id   | Name    | Address    | Subject    | +------+---------+------------+------------+ | 101  | YashPal | Amritsar   | History    | | 105  | ... Read More

CSS3 Multi-Column rule-color Property

vanithasree

vanithasree

Updated on 21-Jun-2020 06:26:24

53 Views

The multi-column rule-color property is used to specify the column rule color. You can try to run the following code to implement a rule-color property in CSS3 −ExampleLive Demo                    .multi {             /* Column count ... Read More

Web Fonts in CSS

vanithasree

vanithasree

Updated on 20-Jun-2020 13:51:17

90 Views

Web fonts are used to allow the fonts in CSS, which are not installed on a local system. ExampleThe following code shows the sample code of font face:Live Demo                    @font-face {             font-family: myFirstFont;     ... Read More

How can we create a new database by using mysqladmin?

vanithasree

vanithasree

Updated on 20-Jun-2020 13:40:02

126 Views

We would need special privileges to create or to delete a MySQL database. Following is the syntax for creating a new database using mysqladmin binary −Syntax[root@host]# mysqladmin -u root -p create db_name Enter password:******Here, db_name is the name of the database we want to create.ExampleFollowing is a simple example to ... Read More

How can I check the list of MySQL tables, in a different database than we are using currently, along with table type in the result set?

vanithasree

vanithasree

Updated on 20-Jun-2020 12:57:10

49 Views

It can be done with the SHOW FULL TABLES statement. Its Syntax would be as follows −SyntaxSHOW FULL TABLES FROM db_nameHere, db_name is the name of the database from which we want to see the list of tables.ExampleWe are currently using the database named ‘query’ and the MySQL query below ... Read More

How to allow a MySQL user account to connect from any host?

vanithasree

vanithasree

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

2K+ Views

It is quite possible to allow a user account to connect from any host. To do so we need to create the user with the help of ‘%’ wild card character after @ character. Its syntax would be as follows −Use mysql; CREATE USER user_name@’%’ IDENTIFIED BY password;Here user_name is the ... Read More

What kind of settings can we do to a text file by query while exporting the values from MySQL table into a text file?

vanithasree

vanithasree

Updated on 20-Jun-2020 09:26:54

63 Views

While exporting the data from MySQL table to a text file we can use ‘FIELDS TERMINATED BY’, ‘ENCLOSED BY’, ‘LINES TERMINATED BY’ and other options too to put the values of fields in different settings of the text file. It can be illustrated with the help of the following example ... Read More

Advertisements