You are on page 1of 1

COMMANDS FOR MYSQL.

By ABHISHEK

>>show databases;

>>create database bank;

>>Use bank;

>>show tables;[if no found use following ]

>>Create table Customer (Cid numeric(10) or into(10) primary key,cname varchar(15) not
null,amount decimal(10,2),city varchar(15),mobile numeric(10) unique,dob date not null);

>>desc customer;

>>insert into customer values(01929,'Abhishek',50000.85,'Delhi',7011080392,'2003-01-12');

>>select * from customer;

>>select cname,dob from customer;

>>update customer set mobile=9990057095 where Cid=01929;

Here ,

[bank is name of database and customer is name of table]

You might also like