镇场诗:
———大梦谁觉,水月中建博客。百千磨难,才知世事无常。
———今持佛语,技术无量愿学。愿尽所学,铸一良心博客。
——————————————————————————————————————————
1 base code
use master drop database helloworld --创建一个数据库 create database helloworld --用helloworld1这个数据库 use helloworld --创建一个表格FoJiaTeacher create table FoJiaTeacher ( Id ,), Name ), Class ), score float ) --创建一个表格FoJiaTeacher create table DaoJiaTeacher ( Id ,), Name ), Class ), score float ) select * from FoJiaTeacher select * from DaoJiaTeacher --向这个Teacher中插入这几行内容,这个内容我插入一遍后,简单修改,又插入一遍 insert into FoJiaTeacher ), (), (), (), (), () --为了方便,给普贤菩萨加1分 insert into DaoJiaTeacher ), (), (), (), ()
2 code table1
select * from DaoJiaTeacher
3 table1
4 code table2
select * from FoJiaTeacher
5 table2
6 key code1
7 key code 1 show
8 key code 2
9 show key code 2
10 key code 3
--佛道一家,socre为100的有,显示其ID --except 道家中有的ID编号,不会出现在最后的结果中 except
11 show key code 3
12 key code 4
-- 佛家中有的ID编号,不会出现在最后的结果中 except
13 show key code 4
——————————————————————————————————————————
博文的精髓,在技术部分,更在镇场一诗。
SqlSever是优秀的语言,值得努力学习。熟悉数据库的增删查改,写程序必备。
如果博文的内容有可以改进的地方,甚至有错误的地方,请留下评论,我一定努力改正,争取铸成一个良心博客。
注:此文仅作为科研学习,如果我无意中侵犯了您的权益,请务必及时告知,我会做出改正。