摘要:
for in 循坏 For in:把某个集合(字符串、数组)中元素那出来 1 range () 函数 Range(开始值,结束值,步长) Range(1,10)#1,2,3,4,5,6,7,8,9, Range(1,10,2)#1,3,5,7,9 Range(10,0,-1)#10,9,8,7,6, 阅读全文
摘要:
##合并表select * from empunion allselect * from dept; select * from emp,dept;##连接查询select* from emp,dept where emp.deptno = dept.deptno; ##标准写法select *fr 阅读全文
摘要:
查看表结构desc stu6;insert into stu6(id,name ,sex) values(1,'zsf','nv');insert into stu6(id,name) values(2,'zsf');查询结构:select * from stu6; ###引用完整性 学生表 id 阅读全文
摘要:
###引用完整性学生表 id 名字 性别 成绩表 id 学生ID 成绩 create table stu7( id int primary key, name varchar(50) )create table score( id int primary key, sid int, score do 阅读全文