码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
NLog Internal Logging
Internal Logging If you have trouble getting NLog to work properly you may want to enable internal logging, which can help identify where the problem ...
分类:其他好文   时间:2020-07-06 12:57:16    阅读次数:65
python—mysql数据库读取表1获取name作为参数,传入访问表2获取age,结果存入excel
#访问数据库users表读取name#name作为参数,传递查询logininfor表对应的年龄age,并将结果存为excelimport pymysqlimport pandas as pdimport openpyxlcoon=pymysql.connect(host='127.0.0.1', ...
分类:数据库   时间:2020-07-06 12:53:50    阅读次数:86
oracle index NOCOMPRESS
CREATE INDEX "xx" ON "xx" ("PARN_GUID") NOCOMPRESS; SELECT * FROM ALL_INDEXES WHERE table_name = 'xx'; https://oracle-base.com/articles/9i/index-key-c ...
分类:数据库   时间:2020-07-06 12:49:43    阅读次数:76
减少查询的次数,对应在主键索引上只搜索一次第一
假设在 user 表中存在zhangsp1234@gmail.com, zhangs1pzxyz@qq.com , zhangssxyz@xxx.com, 三条记录。 有这样一条语句 select id,name,email from SUser where email='zhangssxyz@xx ...
分类:其他好文   时间:2020-07-06 12:30:41    阅读次数:56
数据库中的条件查询
相关运算符 条件查询需要用到where语句,where必须放到from语句表的后面。 | 运算符 | 说明 | |--|--| | = | 等于 | | <> 或 != | 不等于 | | < | 小于 | | ? | 小于等于 | | > | 大于 | | >= | 大于等于 | | betwee ...
分类:数据库   时间:2020-07-06 11:14:37    阅读次数:123
深入理解Hadoop第5章(我的复现)
这里的1987.csv和1988.csv只是当年的12月份数据 Select Where Aggregation AggregationWithCombiner SplitByMonthMapper ...
分类:其他好文   时间:2020-07-06 01:39:23    阅读次数:66
mysql生成随机时间
mysql> update test set create_time=concat('2013-10-01 ', floor(10+rand()*10),':',floor(10+rand()*49),':',floor(10+rand()*49)) where create_time='0000- ...
分类:数据库   时间:2020-07-06 00:42:41    阅读次数:116
【oralce】select查询语句
1、基础查询 SELECT [DISTINCT] column1,column2..|* FROM table_name [WHERE conditions]; --distinct 去重 2、给字段设置别名 SELECT column1 AS column1_new ,... FROM table ...
分类:其他好文   时间:2020-07-05 19:42:35    阅读次数:83
sql优化的几种方式
一、SQL优化的一些方法 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where nu ...
分类:数据库   时间:2020-07-05 19:41:18    阅读次数:68
2020/3/25 下午 数据库第四章 自连接
自连接 查询与“数据结构”学分相同的课程的课程名和学分 SELECT C2.Cname,C1.Credit FROM Course C1 JOIN Course C2 ON C1.credit=C2.credit where C2.Cname='数据结构' and C2.Cname!='数据结构' ...
分类:数据库   时间:2020-07-05 17:17:49    阅读次数:63
20257条   上一页 1 ... 60 61 62 63 64 ... 2026 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!