##合并表select * from empunion allselect * from dept; select * from emp,dept;##连接查询select* from emp,dept where emp.deptno = dept.deptno; ##标准写法select *fr ...
分类:
数据库 时间:
2021-04-22 15:30:06
阅读次数:
0
9.3.1常见的运算符 关系运算符:=、!=、<>、>=、<= 区间:between A and B -》[A,B] And :并且,和。 Or:或者 Is null:空 Not:否,非 Is not null:非空 In:在什么里面 9.3.2 或or、并且and ##(2.1)查询性别女,并且 ...
分类:
其他好文 时间:
2021-04-22 15:17:27
阅读次数:
0
1,查询的基本语法 查询内容:select StudentId,StudentName,Gender -->列名 查询对象:from Students -->表名 过滤条件:where Gender='男' --> 查询条件表达式(可选) 结果排序:order by StudentId DESC - ...
分类:
数据库 时间:
2021-04-21 13:00:33
阅读次数:
0
【事件】 bike trip Describe an unforgettable bike trip you had You should say: When and where you had the trip Who you went with Why you had the trip by b ...
分类:
其他好文 时间:
2021-04-21 12:57:26
阅读次数:
0
ctfshow web7 和上题一样的套路 先跑一遍字典 "or "a"="a'.).or.('.a.'='.aor 1=1--'or 1=1--a'or' 1=1--"or 1=1--'or.'a.'='a"or"="a'='a'or''=''or'='or'1'or 1=1#'='&passwo ...
分类:
Web程序 时间:
2021-04-21 12:53:43
阅读次数:
0
Dim bag,pipe do Set bag=GetObject("WinMgmts:") Set pipe=bag.execquery("select * from win32_process where name='notepad.exe'") for each i in pipe i.ter ...
分类:
系统相关 时间:
2021-04-21 12:36:32
阅读次数:
0
查询你想要的表名:select table_name,tablespace_name,status,temporary from user_tables where table_name like '%tab_name%';tab_name 为要查表名的其中一部分。如:你要查表名中有order的表名 ...
分类:
数据库 时间:
2021-04-21 12:08:25
阅读次数:
0
更新数据 语法: update表名set字段1名字=字段1的值,字段2名字=字段2的值 where条件 更新所有数据 将所有人的成绩设置为100; update t_user set score=100; 根据条件更新 将学号是3的学生,成绩设为59; update t_user set score ...
分类:
其他好文 时间:
2021-04-21 12:06:39
阅读次数:
0
索引优化 1.1SQL性能下降的原因 查询语句写的很不好; 索引失效 单值索引 select * from user where name=''; create index idx_user_name on user(name); 复合索引 select * from user where name ...
分类:
其他好文 时间:
2021-04-20 14:31:28
阅读次数:
0
一、过滤 SELECT * FROM mytable WHERE col IS NULL 二、排序 SELECT * FROM mytable ORDER BY col1 DESC, col2 ASC 注: ASC:升序(默认) DESC:降序 ...
分类:
数据库 时间:
2021-04-20 14:08:18
阅读次数:
0