Posted by: tonyteaching | February 19, 2009

To show Database and Table

1. To show existing Databases in MySQL

show databases;

——–

2. To select a database (e.g. ‘smsegov’)

use smsegov;

——–

3. To show existing tables in the database (e.g. ‘smsegov’)

Show tables;

——–

4. To see Structure of a table   (e.g. ‘survey1’)

describe survey1;

——–

5. To show data inside a table (e.g. ‘survey1’)

select * from survey1;


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: