public abstract class ModelsBase {
//自动从DataRow里取数据给属性赋值 public void RightDataFrom(DataRow row) { Type type =
this.GetType(); //遍历每一个属性 foreach...
分类:
其他好文 时间:
2014-06-04 20:18:20
阅读次数:
197
if we want to filter with sed pattern and just
print the filtered lines without any further editing , we can do it like thisls
-a1 ~ | sed -ne "/^\./p...
分类:
其他好文 时间:
2014-05-28 22:58:56
阅读次数:
294
采用Gridview的OnRowDataBound属性后台protected void
gvTranslateInfo_RowDataBound(object sender, GridViewRowEventArgs e) {
if(e.Row.RowIndex>...
分类:
其他好文 时间:
2014-05-28 22:38:21
阅读次数:
265
1.异常:Cannot delete or update a parent row: a
foreign key constraint
fails 解决方案:将MySQL方言修改为org.hibernate.dialect.MySQLInnoDBDialect问题解决
分类:
其他好文 时间:
2014-05-26 10:29:56
阅读次数:
229
DataTable排序DataRow[] rows = dataTable1.Select("",
"ord asc");DataTable t = DataTable1.Clone();t.Clear();foreach (DataRow row in
rows) t.ImportRow(row)...
分类:
其他好文 时间:
2014-05-25 20:16:33
阅读次数:
341
-----022-mysql.php ----- 1 2 3 4 5 MySQL 6 7 8
MySQL 9 10 mysql_fetch_row查询数据:", "\n";22 while(list($a, $b, $c) =
mysql_fetch_row($r...
分类:
数据库 时间:
2014-05-25 03:24:55
阅读次数:
281
今天写程序,遇到了crash,在界面初始化时不会有,想切换到别的tab页就报错了。主要内容如下:Cannot
find an outgoing row head for incoming head UIImageView:0x156caec0.Width{id:
103}, which should...
分类:
移动开发 时间:
2014-05-23 06:48:54
阅读次数:
280
SQL Server 2005引入的新方法。SELECT * FROM (SELECT
ROW_NUMBER() OVER(ORDER BY keyField DESC) AS rowNum, * FROM tableName) AS t
WHERE rowNum > start AND rowNu...
分类:
数据库 时间:
2014-05-22 14:22:58
阅读次数:
351
测试结论
mysql版本 5.1
表类型: innodb, row_format=compact (这是默认的行格式)
插入超过10个blob, blob的数据量很小(
插入超过10个blob, blob的数据量很大(>768字节), 插入失败:报 Got error 139 from storage engine。
注意,如果mysql服...
分类:
数据库 时间:
2014-05-22 11:55:10
阅读次数:
347
一次AC
二维树状数组,有模版很好办
注意二维树状数组这个下标是[1][1]的
#include
#include
#include
#include
#include
#include
using namespace std;
const int Max = 1030;
int row, col, ar[Max][Max];
// 二维的其实下标为[1][1],这个要记得。
...
分类:
其他好文 时间:
2014-05-21 16:23:34
阅读次数:
271