Professional Documents
Culture Documents
Database changed
create table salesman(s_id varchar(5) primary key,sname varchar(10) not null,city varchar(15) not
null,salary int(5),product varchar(20),target int(4));
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+------+---------+-----------+--------+--------------+--------+
+------+---------+-----------+--------+--------------+--------+
+------+---------+-----------+--------+--------------+--------+
mysql> create table customer(c_id varchar(5) primary key,cname varchar(20) not null,city varchar(15)
not null,state varchar(15),pincode int(8),product varchar(20),class char(1) default'A');
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+------+---------+-----------+---------------+---------+----------+-------+
+------+---------+-----------+---------------+---------+----------+-------+
+------+---------+-----------+---------------+---------+----------+-------+
5 rows in set (0.00 sec)
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+