1、打开mysql,登录数据库!
2、打开“sheying”数据库:use sheying;
3、显示所有表:show tables;
4、在这个表中插入数据:insert into shangpinxinxi(fenei,mingcheng,zhujima,danwei,jiage,hyjiage) values('00','照片‘,'zp','张’,30,20);
5、查看数据:select * from shangpinxinxi;
6、在增加一个数据:insert into shangpinxinxi values('01','42吋照片‘,'42zp','张’,50,35);
7、查看数据:select * from shangpinxinxi;
8、把fenlei='00'的数据删除:delete from shangpinxinxi where fenlei='00';
9、查看数据:select * from shangpinxinxi;
10、修改fenlei='01'的数据:update shangpinxinxi set fenlei='02',jiage=80 where fenlei='01';
11、查看数据:select * from shangpinxinxi;修改成功!