其实操作语言也不难,包括insert,update,delete分别对表中的数据进行添加,修改和删除
1.插入数据语法如下:
insert into mytable(mycolumn) values('somevalue')
举例说明一个student表有中的两个字段name和sex要插入数据记录为"成龙""男性"
insert into student(name,sex) values('成龙','男性')
2.删除记录的语法如下:
delete from mytable where some_lolunm='somevalue'
举例说明:将student表中name字段为"成龙"的记录删除
delete from student where name='成龙'
3.更新记录语法如下:
update mytable set first_colum='some_value'
where second_cloum='someother_value'
举例说明:将student 表中name字段为"成龙"的记录中的sex字段中的"男性"改为"男"(前提条件:没有把这个记录删除!)
update student set sex='男'
where name='成龙'
总结:SQL是一门非常强大的面向集合的数据库语言,想将它灵活运用并不是一件容易的事,需要你在以后的日子里不断的摸索推敲,当然,运用在ASP中的SQL语句都是相对简单的.
另外,还有关于SQL的5种集合函数,在这里就不介绍了,有兴趣者可以去看一点关于这方面的书,我想对于你学习ASP肯定是有帮助的

