摘要:
--切换数据库use MySchool --查询对应年级下的学生人数SELECT COUNT(1) AS '人数' FROM Student WHERE GradeId=1SELECT COUNT(1) AS '人数' FROM Student WHERE GradeId=2SELECT COUNT 阅读全文
摘要:
SELECT * FROM StudentUPDATE Student SET StudentName='王波' WHERE StudentNo='Y21003011' --模糊查询:查询学生表中姓’冯‘的学生记录 '%':匹配0-n个任意字符 --'_'匹配单个字符 --'[]'匹配区间内的值:如 阅读全文
摘要:
--向Student表中插入数据 --语法:INSERT [INTO]表名(列名)VALUES(值列表) INSERT INTO Student (StudentNo,LoginPwd,StudentName,Sex,GradeId,Phone,Address,BornDate,Email) VAL 阅读全文