摘要: 复杂的查询: 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) 编辑
摘要: 链接:https://www.cnblogs.com/lina6251125/p/6392299.html 知识点: location.href跳转 location.replace跳转 location.reload刷新 特定页面下: history.go(-1);后退 history.go(1) 阅读全文
posted @ 2018-03-26 22:47 newRohLzy 阅读(130) 评论(0) 推荐(0) 编辑
摘要: cmd-dos命令 expand –F:* C:\update\Windows6.1-KB2533623-x64.msu C:\update\ dism.exe /online /Add-Package /PackagePath:C:\update\Windows6.1-KB2533623-x64. 阅读全文
posted @ 2018-03-26 22:37 newRohLzy 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 创建 create proc 存储过程名 (参数列表) as sql 语句 go 执行 exec 存储过程名 参数1,参数2 删除 drop procedure 存储过程名 注: 存储过程名最好以_proc结尾 阅读全文
posted @ 2018-03-14 22:11 newRohLzy 阅读(1089) 评论(0) 推荐(0) 编辑