zno2

2016年8月5日 #

CLOB 和 BLOB

摘要: An SQL CLOB is a built-in type that stores a Character Large Object as a column value in a row of a database table. An SQL BLOB is a built-in type tha 阅读全文

posted @ 2016-08-05 18:03 zno2 阅读(151) 评论(0) 推荐(0) 编辑

select for update [nowait]

摘要: Syntax Syntax The NOWAIT and WAIT clauses let you tell the database how to proceed if the SELECT statement attempts to lock a row that is locked by an 阅读全文

posted @ 2016-08-05 18:03 zno2 阅读(137) 评论(0) 推荐(0) 编辑

PL/SQL Developer 窥探事务

摘要: 一次登录代表一个连接 一个SQL Window 代表一个会话(session),有唯一的SID 事务(transaction) 由 insert 、update 或者 delete 开启 由 commit 或者 rollback 结束 会话中可以有事务,可以没有事务 会话之间是不可见的(事务中的CU 阅读全文

posted @ 2016-08-05 18:03 zno2 阅读(238) 评论(0) 推荐(0) 编辑

ORA-00054、ORA-08002

摘要: https://docs.oracle.com/cd/B10501_01/server.920/a96525/e7500.htm ORA-00054 resource busy and acquire with NOWAIT specified 1.查询 2.kill ORA-08002 ORA-0 阅读全文

posted @ 2016-08-05 18:02 zno2 阅读(133) 评论(0) 推荐(0) 编辑

存储过程及函数初探

摘要: pl/sql procedures new 新建 F8 Ctrl + s 保存 refresh 刷新 test 测试 dbms_output.put_line('Test script | DBMS Output | ...'); IF SQL%ROWCOUNT = 1 THEN XXX ELSE 阅读全文

posted @ 2016-08-05 18:02 zno2 阅读(94) 评论(0) 推荐(0) 编辑

如何快速获取官网帮助信息 (附 11g pdf 文档)

摘要: http://docs.oracle.com/en/ 11g Release 2 (11.2) 搜索时指定网站 site:docs.oracle.com create table site:docs.oracle.com listagg 阅读全文

posted @ 2016-08-05 18:02 zno2 阅读(161) 评论(0) 推荐(0) 编辑

常用函数 常见关键字

摘要: site:docs.oracle.com sql functions --聚合函数 site:docs.oracle.com group by function site:docs.oracle.com GROUP BY clause site:docs.oracle.com WHERE Claus 阅读全文

posted @ 2016-08-05 18:02 zno2 阅读(224) 评论(0) 推荐(0) 编辑

聚合函数 listagg (超出长度限制时xmlagg)

摘要: 表&数据 原来的结果 想要的结果 用法 当连接的字符串过长时会出现以下错误: 解决方案: XMLAGG https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions215.htm XMLType https://docs.oracl 阅读全文

posted @ 2016-08-05 18:02 zno2 阅读(9168) 评论(0) 推荐(0) 编辑

查询组中包含特定类型不包含特定类型的数据

摘要: 根据template_id 做过滤 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ SELECT * FROM ( SELECT CONCAT(user_id, '_', doctor_id) u_d, GROUP_CONCAT(template_id) str FROM treatment_log GROUP 阅读全文

posted @ 2016-08-05 18:01 zno2 阅读(245) 评论(0) 推荐(0) 编辑

日期时间(一)

摘要: sql sql2 oracle 数据库中字段为DATE类型时,插入'2015-5-18 00:00:00' 显示2015-5-18 将DATE类型数据改为TIMESTAMP时,'2015-5-18' 这种数据将显示为'18-5月 -15 12.00.00.000000 上午' java oracle 阅读全文

posted @ 2016-08-05 18:01 zno2 阅读(279) 评论(0) 推荐(0) 编辑

复制表结构及数据

摘要: 结果 阅读全文

posted @ 2016-08-05 18:01 zno2 阅读(171) 评论(0) 推荐(0) 编辑

《官方资料》 例如:string 函数 、分组函数

摘要: site:www.mysql.com SUBSTRING_INDEX 官方文档: http://dev.mysql.com/doc/refman/5.0/en/string-functions.html 字符串函数 http://dev.mysql.com/doc/refman/5.0/en/gro 阅读全文

posted @ 2016-08-05 18:00 zno2 阅读(157) 评论(0) 推荐(0) 编辑

mysql 字段名是关键字 报错

摘要: 遇到的问题: 解决办法: 添加 反引号(Esc键下面的~键) 引出的问题: mybatis-generator 如何生成带有反引号的mapper.xml 关键点: <property name="beginningDelimiter" value="`"/> <property name="endi 阅读全文

posted @ 2016-08-05 18:00 zno2 阅读(10402) 评论(0) 推荐(1) 编辑

mysql 截取字符串

摘要: disease_ids 1,2,3,4 阅读全文

posted @ 2016-08-05 18:00 zno2 阅读(144) 评论(0) 推荐(0) 编辑

mysql event 入门

摘要: delimiter | CREATE EVENT statistics_event ON SCHEDULE EVERY 1 DAY STARTS CONCAT(CURRENT_DATE(), ' 00:00:00') #STARTS '2016-01-22 17:42:00' ON COMPLETION PRE... 阅读全文

posted @ 2016-08-05 17:59 zno2 阅读(315) 评论(0) 推荐(0) 编辑

mysql 开通远程连接

摘要: 使用localhost好用,但是改成ip地址后不好用,执行sql语句做如下修改: *********************General Information********************连接名: 本地主机名或 IP 地址: 192.168.0.115端口: 3306用户名: root 阅读全文

posted @ 2016-08-05 17:59 zno2 阅读(134) 评论(0) 推荐(0) 编辑

MySql MyBatis 自动生成主键返回null

摘要: 无法返回自动生成的ID, 解决: 数据库中设计表,中勾选自动递增。 mysql 注: identity 设置为 true 是自增后将 id值放入bean ,设置为false 是先检索 id 值再插入table (oracle 是序列,设置成false,mysql 是自增,设置成true) 阅读全文

posted @ 2016-08-05 17:58 zno2 阅读(506) 评论(0) 推荐(0) 编辑

mysql string function

摘要: https://dev.mysql.com/doc/refman/5.5/en/string-functions.html 1) replace 把表zxg中的newlevel字段中的b删除 2) SUBSTRING_INDEX 阅读全文

posted @ 2016-08-05 17:58 zno2 阅读(189) 评论(0) 推荐(0) 编辑

mysql存储过程入门

摘要: https://dev.mysql.com/doc/refman/5.5/en/flow-control-statements.html 比如 if else 等 阅读全文

posted @ 2016-08-05 17:58 zno2 阅读(151) 评论(0) 推荐(0) 编辑

如何从官网开始 mongo java

摘要: http://docs.mongodb.org/ecosystem/drivers/ MongoDB Driver Documentation Getting Started Installation Guide Quick Tour Admin Quick Tour Reference Conne 阅读全文

posted @ 2016-08-05 17:57 zno2 阅读(142) 评论(0) 推荐(0) 编辑

mongodb-win32-i386-3.0.6 使用

摘要: 一、下载地址 https://fastdl.mongodb.org/win32/mongodb-win32-i386-3.0.6.zip 二、安装 1. systeminfo OS 名称: Microsoft(R) Windows(R) Server 2003, Standard EditionOS 阅读全文

posted @ 2016-08-05 17:57 zno2 阅读(416) 评论(0) 推荐(0) 编辑

mongodb-win32-i386-3.0.6 使用常见错误

摘要: 1.Error parsing YAML config file: yaml-cpp: error at line 3, column 28: unknown escape character: m 指定日志文件路径时不要用 \ ,使用/ 2. 2015-09-11T15:18:57.982+080 阅读全文

posted @ 2016-08-05 17:57 zno2 阅读(732) 评论(0) 推荐(0) 编辑

mongodb spring 集成

摘要: 参考文档 依赖 beans-mongodb.xml CustomMongoClient.java 如何使用: 阅读全文

posted @ 2016-08-05 17:57 zno2 阅读(214) 评论(0) 推荐(0) 编辑

display

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>display</title> <style> .parent{ width:200px; height: 200px; background-color: a 阅读全文

posted @ 2016-08-05 17:56 zno2 阅读(165) 评论(0) 推荐(0) 编辑

mongodb3 设置用户名密码 ,linux

摘要: 消除警告 ↓ 如果是NUMA machine ,启动服务时bin下这样执行numactl --interleave=all ./mongod --config /etc/mongodb.conf &判读是不是MUMAgrep -i numa /var/log/dmesgNUMA: Allocated 阅读全文

posted @ 2016-08-05 17:56 zno2 阅读(1663) 评论(0) 推荐(1) 编辑

管理工具推荐

摘要: http://www.robomongo.org/ Robomongo — is a shell-centric cross-platform open source MongoDB management tool (i.e. Admin GUI). MongoVUE 阅读全文

posted @ 2016-08-05 17:56 zno2 阅读(83) 评论(0) 推荐(0) 编辑

mongo find

摘要: MongoVUE 对应成语句,结构如下: db.logs.find({ "message" : /消息/ }, { "message" : 1 }).limit(50).sort({ "timestamp" : -1 }); 现有学生表(姓名,年龄,时间) create table student( 阅读全文

posted @ 2016-08-05 17:56 zno2 阅读(197) 评论(0) 推荐(0) 编辑

redis 工具

摘要: 搜索关键词:redis 工具 推荐:http://redisdesktop.com/download 点评:使用顺手,顺畅。 ★★★★★ 五星好评 备注:redis key 可以采用某种format ,在使用工具的时候可以进行归类,比如使用 colon 阅读全文

posted @ 2016-08-05 17:55 zno2 阅读(116) 评论(0) 推荐(0) 编辑

Redis Quick Start [熟练版]

摘要: 一、下载解压 wget http://download.redis.io/redis-stable.tar.gztar xvzf redis-stable.tar.gzcd redis-stable 二、查看README Where to find complete Redis documentat 阅读全文

posted @ 2016-08-05 17:54 zno2 阅读(227) 评论(0) 推荐(0) 编辑

Redis cluster

摘要: http://redis.io/topics/cluster-tutorial http://www.redis.cn/topics/cluster-tutorial.html Creating a Redis Cluster using the create-cluster script If y 阅读全文

posted @ 2016-08-05 17:54 zno2 阅读(328) 评论(0) 推荐(0) 编辑

redis cluster 使用中出现的问题

摘要: 问题一 查找问题 https://github.com/xetorthio/jedis/issues/659 In case of bad usage, you should not use 127.0.0.1 or localhost to setup cluster.If you use 127 阅读全文

posted @ 2016-08-05 17:54 zno2 阅读(1824) 评论(0) 推荐(0) 编辑

redis 设置认证

摘要: server 使用帮助 client 使用帮助 阅读全文

posted @ 2016-08-05 17:54 zno2 阅读(254) 评论(0) 推荐(0) 编辑

安装一个Redis

摘要: 1. 官网 http://redis.io/ 2.下载 官方不提供windows版本,但https://github.com/MSOpenTech/redis 可以从这里获取64位。 3. 阅读全文

posted @ 2016-08-05 17:53 zno2 阅读(92) 评论(0) 推荐(0) 编辑

Redis java client ==> Jedis

摘要: https://github.com/xetorthio/jedis Jedis is a blazingly small and sane Redis java client. Jedis was conceived to be EASY to use. Jedis is fully compat 阅读全文

posted @ 2016-08-05 17:53 zno2 阅读(407) 评论(0) 推荐(0) 编辑

Redis Quick Start [遇到问题解决问题版]

摘要: http://redis.io/topics/quickstart make test 时的问题: 问题:gcc: Command not found 解决:yum install gcc [root@VM_7_88_centos redis-stable]# yum install gcc Loa 阅读全文

posted @ 2016-08-05 17:53 zno2 阅读(364) 评论(0) 推荐(0) 编辑

MemCachedClient 节点失效时的处理

摘要: 引入jar包 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apach 阅读全文

posted @ 2016-08-05 17:52 zno2 阅读(481) 评论(0) 推荐(0) 编辑

MemCache 安全使用原则(自己整理,仅供参考)

摘要: 使用场景:通过缓存判断是否首次 1. 能add到缓存的一定要插入表(是首次就是双重校验) 2. 要保证(见3)add返回false则是因为缓存中已存在(节点停止服务时也返回false需要排除这种情况) 3. MemCache集群(多节点),使用get触发坏节点,保证add可以正常使用(除非所有节点都 阅读全文

posted @ 2016-08-05 17:52 zno2 阅读(135) 评论(0) 推荐(0) 编辑

Memcached 应用场景

摘要: 1. 把java对象序列化成base64 存入缓存,不同平台可以反序列化。 2. 通过key去重复 3. 保存一些信息,供所有平台使用 阅读全文

posted @ 2016-08-05 17:52 zno2 阅读(110) 评论(0) 推荐(0) 编辑

MemCahced 使用及常见问题说明

摘要: 前言 本文档是针对Memcached使用及常见问题的说明。 一.获取 1. MemCached 官网:http://www.memcached.org 下载:http://memcached.org/latest 2. libevent http://www.monkey.org/~provos/l 阅读全文

posted @ 2016-08-05 17:51 zno2 阅读(435) 评论(0) 推荐(0) 编辑

Spring 集成 MemCache

摘要: 1)xml 2)java 3)pom.xml java-memcached 源码: https://github.com/gwhalin/Memcached-Java-Client/ java-memcached 下载地址: https://github.com/gwhalin/Memcached- 阅读全文

posted @ 2016-08-05 17:51 zno2 阅读(175) 评论(0) 推荐(0) 编辑

导航