赞
踩
DQL 数据查询语言
1)select
insert into user(username,password) values(‘user1’,‘123’);
insert into user123(user,sex)values('user12','man');
delete from user where id=5;
DELETE FROM `myweb`.`user123` WHERE `id` = 4;
检测是否能删除
desc DELETE FROM `myweb`.`user123` WHERE `id` = 4\G
update user set password=‘123’ where id=2;
update user set username=‘user33’,password=‘123’ where id=3;
UPDATE `myweb`.`user123` SET `user` = 'user123333' WHERE `id` = 2
select * from user;
#查询表中所有字段以及每个字段所对应的所有记录
select * from user123;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。