今天项目从SqlServer转移到了MySql,转移过程中发现了一些问题,以前没遇到过,在网上查了查,总算是解决了,但是问题的根源还弄明白,暂且记录下来:首先有个tb_paymentmethod表,表中有几条数据如下:DAO层获取Model时这样:
if (row["IsDefault"] != n...
分类:
数据库 时间:
2014-05-12 15:58:21
阅读次数:
974
select * from ( select row_number() over(order
by BD008_001) as row ,* from ...
分类:
数据库 时间:
2014-05-09 16:56:57
阅读次数:
328
Given a triangle, find the minimum path sum from
top to bottom. Each step you may move to adjacent numbers on the row below.For
example, given the fol...
分类:
其他好文 时间:
2014-05-08 21:08:25
阅读次数:
407
最近在做一个机票数据抓取的项目,经常需要在代码中post一堆参数。通过Httpfox
copy下 所有row到Editplus,通过正则替换:(.*?)\s+?(.*)\nnew
NameValuePair("\1","\2"),\n可以直接生成Java代码。
分类:
其他好文 时间:
2014-05-08 19:42:26
阅读次数:
259
root@localhost > show slave
status\G*************************** 1. row ***************************
Slave_IO_State: Waiting for master to...
分类:
其他好文 时间:
2014-05-06 00:14:48
阅读次数:
371
今天使用数据库时(SQLite)出现了一个错误让我头疼了好半天,最后发现是自己粗心引起的,在这里把这个错误记下来,以便以后查阅以下是当时报的错误:
错误原因:是因为自己从数据库建立连接后没有将游标向下移位(使用reader.Read()方法)就开始读数据引起的,此时游标中是没有数据的,切记...
分类:
数据库 时间:
2014-05-04 12:25:13
阅读次数:
308
1 . @asset 可以屏蔽错误 2 . isset判断是否有这样一个值3 浏览器的状态管理
(用户登录) 3.1 PHP /asp /tsp cookiel(针对客户端) 、sessiong(针对服务端)。 4 . if($row[0]) {
setcookie("mycookie"...
分类:
Web程序 时间:
2014-05-04 12:16:52
阅读次数:
336
1.状态管理(用户登录)phpAsp===》cookie(客户端)本地JSP
session(服务器)2.setcookie("mycookie",$user,time()+1800);默认有前两个值 if($row[0]){
setcookie("mycookie",$user,time()+1....
分类:
其他好文 时间:
2014-05-04 12:11:18
阅读次数:
383
题目如下:
``Accordian'' Patience
You are to simulate the playing of games of ``Accordian'' patience, the rules for which are as follows:
Deal cards one by one in a row from left to right, no...
分类:
其他好文 时间:
2014-05-04 09:08:31
阅读次数:
329
每个section的row数量(都是从0下标开始)(http://blog.csdn.net/hmt20130412/article/details/20831377)
分类:
移动开发 时间:
2014-05-04 00:29:14
阅读次数:
322