
Database
大大肥羊
我是一只来自北方的肥羊
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
MySQL导出DUMP命令备忘
导出带数据的DUMP (忽略部分表) mysqldump --set-gtid-purged=OFF --skip-lock-tables --ignore-table=merchant.glb_person_login_log --ignore-table=merchant.glb_dest_hirchy_mst_old --ignore-table=merchant.glb_shop_des原创 2016-08-16 14:51:14 · 569 阅读 · 0 评论 -
MYSQL:巧用临时变量做分组统计
题目: 一张测试成绩表(test_score_tbl)中包括班级(class), 姓名(name), 分数(score) 三个字段, 求用SQL文检索出每个班级的前三名。 答案: 按照班级(class), 分数(score)排序后,再利用临时变量筛选出前三名: select @pre_class:=0, @rownum:=0; select class, name,原创 2016-09-06 10:20:24 · 3607 阅读 · 0 评论 -
如何安装oracle
1) access Oracle website and download the software http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html we have downloaded them and you can find in \\ldns-dt-26原创 2016-08-31 17:35:05 · 529 阅读 · 0 评论 -
CygWin安装RedisCluster指南
背景 客户为提高性能升级至RedisCluster,本地也要安装开发环境, 因为Redis最新版只能在64位机器上运行,操作系统用Win7 64版。 Redis最新版官方只有Linux版,下载地址 http://redis.io/download 某开源小组提供了Windows版,下载地址 (https://github.com/MSOpenTech/redis)(releases页面)原创 2016-08-23 17:27:45 · 697 阅读 · 0 评论 -
ORACLE: 用 SUM OVER统计求和
select sum(1) over() as total, sum(1) over(order by id) as idx from test_table; 假设test_table 结果为: total idx 10 1 10 2 10 3 10 4 10 5 10 6 10 7原创 2017-12-27 08:50:28 · 1019 阅读 · 0 评论 -
ORACLE 导出检索结果
set echo off; set feedback off; set verify off; set term off; set trimspool on; set linesize 5000; set newpage none; set heading off; set serveroutput off ALTER SESSION SET NLS_TIMESTAMP_FORMAT='YYYY/原创 2017-12-27 10:05:11 · 353 阅读 · 0 评论