码迷,mamicode.com
首页 > 数据库
浅谈mysql的两阶段提交协议
转自: http://www.cnblogs.com/hustcat/p/3577584.html MySQL的事务提交逻辑主要在函数ha_commit_trans中完成。事务的提交涉及到binlog及具体的存储的引擎的事务提交。所以MySQL用2PC来保证的事务的完整性。MySQL的2PC过程如下 ...
分类:数据库   时间:2016-12-01 11:45:51    阅读次数:189
MySql安装
一、打开浏览器,进入MySQL官网(http://www.mysql.com)。当然可以通过百度搜索MySQL进入(前几条中,标记官网的那个) 二、点击主页中的Downloads,进入下列页面。其中默认选择的是Enterprise(企业版)。对于本人来说,企业版,没钱。于是果断点击Community ...
分类:数据库   时间:2016-12-01 09:51:27    阅读次数:380
EXEC与sp_executesql的区别及应用
在项目中需要将内部DECLARE的参数通过EXEC赋值后再作为下面一个EXEC参数的时候,发现都使用EXEC时,问题就不是那么简单了。趁着没有睡意研究下。EXEC的使用与缺点EXEC命令有两种用法,一种是执行一个存储过程,另一种是执行一个动态的批处理 一般的使用如下,做动态SQL语句拼接,然后执行 ...
分类:数据库   时间:2016-12-01 09:50:00    阅读次数:232
MySQL update时使用联表,聚合
原文地址 http://stackoverflow.com/questions/3022405/mysql-update-query-with-left-join-and-group-by ...
分类:数据库   时间:2016-12-01 09:44:57    阅读次数:264
PetaPoco利用ODP.NET Managed Driver连接Oracle
以下内容来源自,只是为了方便查询转载过来: http://www.cnblogs.com/yanxiaodi/p/5038387.html 大概几年之前用PetaPoco做过一个Oracle的项目,开发的时候还需要安装oracle的client,非常麻烦。调试好环境后,一直到项目结束都不敢重装系统。 ...
分类:数据库   时间:2016-12-01 09:43:39    阅读次数:660
Mysql多表关联查询,有索引和没索引的差距
下面简单的用个实例来介绍,索引在多表查询中有多关键! 一、没有索引时同步数据: 1、查询代码如下(关联了九次): 2、运行耗时(2分多钟,数据大概只有一万条): 二:有索引时同步数据 1、给数据库脚本加上索引 note: Key是索引的关键字,'v_ur_sys_dict_val_dict_id' ...
分类:数据库   时间:2016-12-01 09:43:58    阅读次数:324
Oracle性能图表工具:awrcrt.sql
什么是AWRCRT? Awrcrt的全称是 AUTOMATIC WORKLOAD REPOSITORY CHART 是一个oracle性能趋势图表报告工具,它是一个sql脚本:awrct.sql ,仅仅只有一个sql脚本。 Awrcrt report是用图表来展示oracle数据库的性能趋势情况。A ...
分类:数据库   时间:2016-12-01 09:41:46    阅读次数:1293
mysql-四舍五入
四舍五入:1、format函数:select FORMAT(2.567,2); 返回:2.57select FORMAT(12562.6655,2); 返回:12,562.67 //整数部分超过三位的时候以逗号分割,并且返回的结果是string类型的2、truncate 函数:select trun ...
分类:数据库   时间:2016-12-01 09:35:51    阅读次数:237
mongodb的学习
基本操作: 如何安装?创建存放数据的文件夹 robomongo: 图形化管理工具 create -->save -->connect 创建数据库:use Database_name 检查当前选定的数据库:db 检查数据库列表:show dbs 插入文档:db.movie.insert({"name" ...
分类:数据库   时间:2016-12-01 09:35:05    阅读次数:190
《MSSQL2008技术内幕:T-SQL语言基础》读书笔记(下)
索引: 一、SQL Server的体系结构 二、查询 三、表表达式 四、集合运算 五、透视、逆透视及分组 六、数据修改 七、事务和并发 八、可编程对象 五、透视、逆透视及分组 5.1 透视 所谓透视(Pivoting)就是把数据从行的状态旋转为列的状态的处理。其处理步骤为: 相信很多人在笔试或面试的 ...
分类:数据库   时间:2016-12-01 09:32:25    阅读次数:253
MongoDB - MongoDB CRUD Operations, Query Documents, Iterate a Cursor in the mongo Shell
The db.collection.find() method returns a cursor. To access the documents, you need to iterate the cursor. However, in the mongo shell, if the returne ...
分类:数据库   时间:2016-12-01 07:47:38    阅读次数:249
MongoDB - MongoDB CRUD Operations, Query Documents
Query Method MongoDB provides the db.collection.find() method to read documents from a collection. The db.collection.find() method returns a cursor to ...
分类:数据库   时间:2016-12-01 07:44:27    阅读次数:333
MongoDB - MongoDB CRUD Operations, Query Documents, Project Fields to Return from Query
By default, queries in MongoDB return all fields in matching documents. To limit the amount of data that MongoDB sends to applications, you can includ ...
分类:数据库   时间:2016-12-01 07:44:53    阅读次数:258
MongoDB - MongoDB CRUD Operations, Query Documents, Query for Null or Missing Fields
Different query operators in MongoDB treat null values differently. The examples on this page use the db.collection.find() method in the mongo shell. ...
分类:数据库   时间:2016-12-01 07:42:30    阅读次数:216
MongoDB - MongoDB CRUD Operations
CRUD operations create, read, update, and delete documents. Create Operations Create or insert operations add new documents to a collection. If the co ...
分类:数据库   时间:2016-12-01 07:40:30    阅读次数:264
任务一、完成学员报名的DB设计并读写数据库
学员线下报名格式为: 姓名: qq: 修真类型: 预计入学时间: 毕业院校: 线上学号: 日报链接: 立愿: 推荐人: 分析业务模型需要两个方面:基础业务对象、基础业务。搜索资料的时候,觉得类图(class diagram)是一种分析方法,它是OOA(面向对象分析)和OOD(面向对象设计)的重要思想 ...
分类:数据库   时间:2016-12-01 07:41:19    阅读次数:483
MongoDB - The mongo Shell, mongo Shell Quick Reference
mongo Shell Command History You can retrieve previous commands issued in the mongo shell with the up and down arrow keys. Command history is stored in ...
分类:数据库   时间:2016-12-01 07:40:31    阅读次数:376
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!