企业文化 新闻中心 联系我们 {dede:arclist row='10' titlelen='20' channelid='1' typeid='1' orderby='id' orderway='asc' runphp="yes" }[field:title /] [field:url /].....
分类:
其他好文 时间:
2014-09-23 02:16:03
阅读次数:
310
create sequence processss minvalue 1 maxvalue 999999999999 start with 31 increment by 1 ; create or replace trigger trg_t_process_config before insert on? t_process_config for each row? declare ...
分类:
数据库 时间:
2014-09-22 18:43:23
阅读次数:
216
1、用于删除重复记录(The use of to delete the common record)例子:(Example)#1初始化数据(Initialize the data)CREATE TABLE #tmp1 ( id int, name nvarchar(20), age int );IN...
分类:
其他好文 时间:
2014-09-22 17:19:22
阅读次数:
133
os.Stdout.Write(row[0].([]byte)) //往标准输出时写入必须是二进制 fmt.Println(row[0].([]byte)) //输出结果 一个显示正常值 一个显示二进制值 astaxie6 [54] php json 时总会出现乱码 头六个字符? 但是在lin...
分类:
编程语言 时间:
2014-09-22 15:50:02
阅读次数:
257
10.1背景:模拟通过多表查询以分类为分组查询分类中的节目数10.2建表语句(由于实际应用的表,删除了部分字段)mysql>showcreatetablemovies\G;***************************1.row***************************Table:moviesCreateTable:CREATETABLE`movies`(`id`int(11)NOTNULLA..
分类:
其他好文 时间:
2014-09-22 12:41:53
阅读次数:
400
SimpleJdbcTemplate更新操作
String insertsql="insert into users values(2,'lisi',2)";
//向表中插入一行记录,row表示受影响的行数
int row=stj.update(insertsql);
System.out.println(row);//1...
分类:
数据库 时间:
2014-09-22 11:00:02
阅读次数:
255
经常有这样的需求,当A字段有很多重复的值,但是B字段中的值在按A字段分组后是唯一的,因此SELECT A, B字段的时候不知道取B字段中的哪个值,因此在A字段重复的时候想取B字段的值,需要根据C字段中最大最小的值所对应的那一行数据。
在SQL Server 里面可以用如下方式实现,Row_Number() Over(Partition by A Order by C) ID,然后取ID=1。
...
分类:
数据库 时间:
2014-09-20 16:27:59
阅读次数:
259
MySQL 不同引擎的锁机制:MyISAM和MEMORY采用表级锁(table-levellocking)BDB采用页面锁(page-levelocking)或表级锁,默认为页面锁InnoDB支持行级锁(row-levellocking)和表级锁,默认为行级锁锁特点:表级锁:开销小,加锁快;不会出现...
分类:
数据库 时间:
2014-09-20 08:49:36
阅读次数:
191
实验环境master172.16.31.30slave172.16.31.311#vim/etc/my.cnf
log-bin=/binlog/mysql-bin//二进制日志文件目录
innodb_file_per_table=1//innodb表空间独立
server-id=1//从服务器不能跟此id重复
binlog-format=ROW//二进制日志文件格式
log-slave-updates=ture//更新数据开..
分类:
数据库 时间:
2014-09-20 02:22:27
阅读次数:
333
[leetcode]Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place....
分类:
其他好文 时间:
2014-09-19 10:10:15
阅读次数:
200