union alluse myDBSELECT '大于20' as scope,count(*) as 人数FROM student where age>=60union all SELECT '小于20' as scope ,count(*) as 人数FROM student where ag....
分类:
数据库 时间:
2014-12-17 18:03:38
阅读次数:
351
private void toolStripButton1_Click(object sender, EventArgs e) { //判断新增的年度是否已经存在 if (HasYear()) { ...
分类:
数据库 时间:
2014-12-17 17:59:18
阅读次数:
176
1. 1 using System; 2 using System.Collections; 3 using MySql.Data.MySqlClient; 4 5 namespace Helper 6 { 7 /// 8 /// MySQL连接池 9 /// 10 ...
分类:
数据库 时间:
2014-12-17 17:48:41
阅读次数:
234
Mysql的常用命令,可以不用安装phpmyadmin就可以维护mysql里面的数据。
分类:
数据库 时间:
2014-12-17 17:46:22
阅读次数:
205
1 / 2 // LSQLiteDB.m 3 // lua-hello 4 // 5 // Created by leiwuluan on 14-2-13. 6 // Copyright (c) 2014年 hello. All rights reserve...
分类:
数据库 时间:
2014-12-17 17:42:36
阅读次数:
333
1、测试环境:Centos6 X86_64python 2.6 Oracle 10g2、安装cx_Oracle 和 Oracle InstantClient:http://www.rpmfind.net/linux/rpm2html/search.php?query=cx_oraclehttp://...
分类:
数据库 时间:
2014-12-17 17:42:01
阅读次数:
325
一、MySQL 获得当前日期时间 函数 1.1 获得当前日期+时间(date + time)函数:now() mysql> select now(); +---------------------+ | now() | +---------------------+ | 2008-08-08 22:20:46 | +-------------...
分类:
数据库 时间:
2014-12-17 16:35:59
阅读次数:
420
sql解决数据量过大问题的方法 通常情况下,我们用sql数据库存储我们的数据。在项目刚开始的时候,用户量比较小,相应的数据量也比较小,并发压力也比较小。当我们的web应用越来越受欢迎后,用户量会激增,访问量会...
分类:
数据库 时间:
2014-12-17 16:36:48
阅读次数:
230
作报表需要的一些oracle sql
天寒地冻,呆在家里又读完了《Mastering Oracle SQL》2nd,发现Oracle的功能还是很强悍,光函数就有两百个,那些面向对象的查询语言很难模拟,特别是SQL2003里针对OLAP的windows function等。
幸好Hibernate3.0也支持SQL了。
1.报表合计专用的Rollup函数
...
分类:
数据库 时间:
2014-12-17 16:33:41
阅读次数:
188
#create oracle instance parameter
vi initkevin.or
db_name='kevin'
memory_target=0
sga_max_size=5G
sga_target=3G
pga_aggregate_target=1g
processes = 150
audit_file_dest='/u01/app/oracle/admin/k...
分类:
数据库 时间:
2014-12-17 16:32:15
阅读次数:
317
Geodatabase在10.1版本也有较大的改进和更新,在用户体验和性能上都有变化,在实际的工作中可能会碰到各种奇怪的问题(其实都是有原因的,需要我们对其工作机制有所了解才能避免其发生);最近需要使用sde进行空间数据库操作,需要去数据进行管理,所以就在个人电脑上安装相应环境进行测试,未曾料到arcgis10.1已经发生了巨大的变化,其中sde是64为版本(安装的朋友一定要注意啊,不然就会遇到标...
分类:
数据库 时间:
2014-12-17 16:27:08
阅读次数:
246
1.前言 struts2对于写入excel数据支持的很好,话不多说,上代码
2.jsp页面:
<%
String path = request.getContextPath();
String base...
分类:
数据库 时间:
2014-12-17 16:24:39
阅读次数:
200
mysql -u root -pmysql>use mysql;mysql>select 'host' from user where user='root';mysql>update user set host = '%' where user ='root';(报错甭理)mysql>flush ...
分类:
数据库 时间:
2014-12-17 16:18:09
阅读次数:
174
本文主要介绍 Java与MySQL的连接1.安装jdk 略~ 园子里有很多2.安装mysql 略~3.下载并安装JDBC,通过mysql官网下载 http://dev.mysql.com/downloads/connector/j/#current-tab4.安装JDBC,直接运行,安装完成之后:我...
分类:
数据库 时间:
2014-12-17 16:12:50
阅读次数:
286
SQL Server Connection Pooling (ADO.NET)Connecting to a database server typically consists of several time-consuming steps. A physical channel such as ...
分类:
数据库 时间:
2014-12-17 16:13:08
阅读次数:
341