DML语言,在工作中用到的最多,每天都要用到几百次,熟悉着,陌生着。每天都会用到select语句,但都是最普通和没有技术含量的。用了这么长时间,并没有实质上的进步。
一、插入行insert
测试时,造数据,就要用到insert 语句。
1、方法一:
insert into student (stid,name ) values (201210610302,'sunny');
2、方法二:
insert into sunny2 select * from sunny;
二、更新行update
修改数据,是一个很简单的过程。只要把满足条件的数据改成所期望的值即可。
具体语句是:
update student set stid='201210610301' where name='sunny';
三、删除行
delete from student where name='sunny';
四、查询select
这是平时用到最频繁的命令。通过不同的条件,查询测试所需要的数据。
待补充,今天累了,回去休息了。明天再接着这个文章写下去。