// <summary> /// 如果数据为null,则转成数据库可识别的DBNULL.Value /// </summary> /// <param name="obj"></param> /// <returns></returns> public static object DBValue(t ...
分类:
数据库 时间:
2016-05-21 15:51:19
阅读次数:
232
JDBC简介: JDBC全称为java database connectivity,是sun公司指定的java数据库连接技术的简称。 他是sun公司和数据库开发商共同开发出来的独立于DBMS的应用程序接口,它为java程序员进行数据库编程提供了统一的API。 JDBC实际上有两组API,一组面向ja ...
分类:
数据库 时间:
2016-05-21 15:49:21
阅读次数:
276
在数据库中直接调试 在数据库中直接调试是调试SQL Server 2005的存储过程的最简单的方法。 在Visual Stuido的IDE中你可以选择单步执行存储过程,然后就可以一条语句一条语句地单步执行了,同时你也可以检查和修改存储过程内的T-SQL变量和参数。本文结尾处提供下载的压缩包中包括一个 ...
分类:
数据库 时间:
2016-05-21 15:47:12
阅读次数:
130
SQL SELECT DISTINCT 语句 SELECT DISTINCT 语句用于返回唯一不同的值。 SQL SELECT DISTINCT 语句 在表中,一个列可能会包含多个重复值,有时您也许希望仅仅列出不同(distinct)的值。 DISTINCT 关键词用于返回唯一不同的值。 SQL S ...
分类:
数据库 时间:
2016-05-21 15:46:08
阅读次数:
179
http://my.oschina.net/hippora/blog/375292 下载源码并解压 开始编译安装 按照错误提示依次安装依赖包 继续 添加用户 建立好database cluster目标文件夹 环境变量设置 创建database cluster 启动数据库实例 设置好PGDATA环境变 ...
分类:
数据库 时间:
2016-05-21 15:46:23
阅读次数:
222
一、开发背景: 由于老系统已经无法满足实际业务需求,需在现有数据库的甚而上开发新的项目。 二、困难点: 而EF默认情况下是要删除现有数据库表格后重新创建,这是不允许的。当你创建数据库对象时系统会提示“数据库中已存在名为 'XXXXX' 的对象” 三、解决方法: 1、创建测试数据库TEST。 2、创建 ...
分类:
数据库 时间:
2016-05-21 15:40:46
阅读次数:
264
MongoDB 入门教程http://www.runoob.com/mongodb/mongodb-tutorial.html .net 驱动程序下载:http://mongodb.github.io/mongo-csharp-driver/ https://www.nuget.org/packag ...
分类:
数据库 时间:
2016-05-21 14:27:44
阅读次数:
246
In parts 1 and 2 of this series we looked at how to use DbContext.Database.Log to log the SQL generated by EF. But this code is actually a relatively ... ...
分类:
数据库 时间:
2016-05-21 14:25:27
阅读次数:
286
In part 1 we saw how DbContext.Database.Log can be used to easily log SQL to the console or some other TextWriter. This post covers how the context an... ...
分类:
数据库 时间:
2016-05-21 14:26:03
阅读次数:
302
spring boot 与 JdbcTemplate 一起工作 本文将介绍如何将spring boot 与 JdbcTemplate一起工作。 Spring对数据库的操作在jdbc上面做了深层次的封装,使用spring的注入功能,可以把DataSource注册到JdbcTemplate之中。 Jdb ...
分类:
数据库 时间:
2016-05-21 14:25:19
阅读次数:
244
On the EF team we made a late decision to add some support for interception and logging of generated SQL in EF6. To this end recent checkins have adde... ...
分类:
数据库 时间:
2016-05-21 14:18:32
阅读次数:
300
知乎: sqlalchemy 的 ORM 与 Core 混合方式操作数据库是一种怎样的体验? 答: 酸! 本文基于:win 10 + python 3.4 + sqlalchemy 1.0.13 基本步骤如下: 1. 绑定数据库 2. 建立会话 3. 元数据 4. 定义表 5. 创建表 6. 定义类 ...
分类:
数据库 时间:
2016-05-21 13:02:57
阅读次数:
379
批量更新 mysql更新语句很简单,更新一条数据的某个字段,一般这样写: 代码如下: UPDATE mytable SET myfield = 'value' WHERE other_field = 'other_value'; 如果更新同一字段为同一个值,mysql也很简单,修改下where即可: ...
分类:
数据库 时间:
2016-05-21 13:04:43
阅读次数:
270
知乎: sqlalchemy 的 Core 方式操作数据是一种怎样的体验? 答: 爽! 本文基于:win 10 + python 3.4 + sqlalchemy 1.0.13 基本步骤如下: 1. 绑定数据库 2. 连接数据库 3. 元数据 4. 定义表 5. 创建表 6. 插入 7. 查询 8. ...
分类:
数据库 时间:
2016-05-21 13:02:07
阅读次数:
969
随着对MySQL的熟识,今次总结一下MySQL数据库的删除、备份和还原操作 1.数据库的删除: a.删除数据库的命令:drop database dbname; b.删除数据库中的表: 单个表:drop table tablename; 多个表:drop table tablename1,table ...
分类:
数据库 时间:
2016-05-21 13:04:31
阅读次数:
221
创建表: create table Ceshi ( Uid varchar(50) primary key, Pwd varchar(50), Name varchar(50), Nation varchar(50), foreign key(Nation) reference Nation(Cod ...
分类:
数据库 时间:
2016-05-21 13:01:20
阅读次数:
148