Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Sql Mysql-example MySQL Commands

Related Tutorials


 
 

Share on Google+Share on Google+

MySQL Commands

Advertisement
In this section, we are going to read about the mysql commands. Each statement is sent to the server for the execution by MySQL. MySQL provides lots of commands.

MySQL Commands

     

In this section, we are going to read about the mysql commands. Each statement is sent to the server for the execution by MySQL. MySQL provides lots of commands. To see list of mysql commands, you type help or \h on the mysql> prompt: A list of commands is displayed which can be used by the user according to the requirement.

Some General MySQL Commnads:

SHOW DATABASES: It displays lists of all MySQL databases on the system.

USE database_name: To Change database which have to be used. When you connect to the database first time, you will require to change the database. For this you need to run this query. Whenever you have to change the database, execute this query. 

For example:

SHOW TABLES: It displays all lists of tables from the current database.

Similarly, you can use all the MySQL Commands.

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 20, 2009

Related Tutorials

Discuss: MySQL Commands  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com