摘要: oop : 面向对象 对名词编程 理解:对象编程,对名词的属性进行封装 关联知识: 高聚合,低耦合 高聚合理解:从生物角度举例来看,就像多个个体在一起成为群体,可以看成一个多细胞生物。 低耦合:从生物角度举例来看,就像个体之间的联系,可以看成分散的单细胞生物,但是它们之间因为自然界的关系还是一个群体 阅读全文
posted @ 2018-04-10 22:46 newRohLzy 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 复杂的查询: select * from 学生表 where 所属班级编号=(select 班级编号 from 班级表 where 条件) 主句 select * from 学生表 where 所属班级编号=() 子句:select 班级编号 from 班级表 where 条件 阅读全文
posted @ 2018-04-10 22:36 newRohLzy 阅读(97) 评论(0) 推荐(0) 编辑
摘要: T-sql有两种方式: 1.在创建表的时候直接添加约束 create table 学生表 ( ID int primary key identity(1,1), --主键 ,自增列 sex varchar(50) default('男'),--默认值 age int check(age>18 and 阅读全文
posted @ 2018-04-10 22:34 newRohLzy 阅读(81) 评论(0) 推荐(0) 编辑
摘要: create database 库名 --创建库 use 库名 --转到库 create table 表名(列名 数据类型,列名 数据类型)--创建表 select * from 表名 。。。。 阅读全文
posted @ 2018-04-10 22:21 newRohLzy 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 引用:https://zhidao.baidu.com/question/406745181.html 对函数输出进行限制 栗子: 阅读全文
posted @ 2018-04-10 22:16 newRohLzy 阅读(153) 评论(0) 推荐(0) 编辑
摘要: delete from 表名 --删除全部 delete from 表名 where 条件 --删除对应条件的数据 Truncate table 表名 --清理命令(注:完全清除) 阅读全文
posted @ 2018-04-10 22:13 newRohLzy 阅读(130) 评论(0) 推荐(0) 编辑