有时候连得上数据库,有时候又连不上. 可能是数据库上当前的连接数目已经超过了它能够处理的最大值. select count(*) from v$process --当前的连接数 select value from v$parameter where name = 'processes' --数据库允 ...
分类:
移动开发 时间:
2020-05-23 18:13:09
阅读次数:
75
单表查询语句 查看所有:select * from teacher 查看特殊的行:select * from teacher where tid=2 查看特殊字段:select tname from teacher 分页查询 select * from score limit 0,5; // lim ...
分类:
数据库 时间:
2020-05-23 12:54:35
阅读次数:
73
1.where和if标签 (1)where标签能消除第一个条件的前and 和or关键字,避免了sql语句语法错误 (2).if标签表示判断 <!-- 以性别和名字条件查询用户 --> <select id="findBySexAndName" parameterType="User" resultT ...
分类:
数据库 时间:
2020-05-23 12:50:17
阅读次数:
77
redis中的zset结构可以看成一个个包含数值的集合,或者认为是一个关系数据库中用列存储方式存储的一列。 需求 假设我有这样一个数据筛选需求,用SQL表示为: 总结起来就是: 输入: key的列表:key1, key2, key3... 任意多个 每个集合及其需要筛选的下限: set2中值大于v2 ...
分类:
其他好文 时间:
2020-05-23 11:32:00
阅读次数:
50
通过SQL语句,查询某个表中包含的字段名。SQL 语句如下: select COLUMN_NAME,DATA_TYPE,COLUMN_COMMENT from information_schema.COLUMNS where table_name = '表名' and table_schema = ...
分类:
数据库 时间:
2020-05-23 09:42:12
阅读次数:
99
and,or,in,distinct,like,@,is null,is not null,where,GROUP BY,聚合函数MAX,MIN,AVG ...
分类:
数据库 时间:
2020-05-23 09:40:55
阅读次数:
63
INSERT INTO test_table_public(class, name, geography) SELECT class, name, geography FROM test_table WHERE id >= 137181 AND id <= 137214; SELECT class, ...
分类:
数据库 时间:
2020-05-23 00:40:28
阅读次数:
100
new 初始化:括号内加初始值 int *pi = new int (6) // C++98 struct where {double x; double y; double z}; where * one = new where {2.5, 5.3, 7.2}; // C++11 以下为定位 ne ...
分类:
编程语言 时间:
2020-05-22 21:30:15
阅读次数:
116
1.手册样例thinkphp 5.0Db::table('think_user') ->where('name',['like','thinkphp%'],['like','%thinkphp']) ->where(function($query){ $query->where('id',['<', ...
分类:
Web程序 时间:
2020-05-22 19:42:25
阅读次数:
80
一、 select * from sysobjects where type='tr' 二、 ...
分类:
其他好文 时间:
2020-05-22 19:30:06
阅读次数:
67