Basic of MySQL创建数据库:1 mysql> create database xxj;2 Query OK, 1 row affected (0.00 sec)列举数据库:1 mysql> show databases;2 +--------------------+3 | Databa...
分类:
数据库 时间:
2014-07-16 19:25:31
阅读次数:
260
按照数据行数查询Select top 20 name, row_count(db_id(), id) from sysobjects order by row_count(db_id(),id) desc按照分配的空间查询Select top 20 name, reserved_pages(db_i...
分类:
数据库 时间:
2014-07-16 19:09:13
阅读次数:
274
行迁移和行链接是经常接触到的一个概念。行链接是记录太大,一个数据块无法存储,oracle就会将其存储在相链接的块中,如果记录中数据类型包括:LONG、LONG RAW、LOB等数据类型时,行链接则无法避免了,可以在AWR实例活动统计部分的table fetch continued row分析可以看....
分类:
其他好文 时间:
2014-07-16 19:00:25
阅读次数:
214
试过visable=“false” 只能隐藏掉数据,但是访问的时候变成“”了。即无法使用。后来改变使用了模版列可以达到想要的效果。可以隐藏,可以访问。aspx页面: ' /> aspx.cs页面: if (e.Row.RowType == DataControlRowType.DataRow) .....
分类:
其他好文 时间:
2014-07-16 18:54:28
阅读次数:
192
if (e.Row.RowType == DataControlRowType.DataRow)e.Row.RowType 是指当前行的类型 DataControlRowType 是GridView的行的类型集合 , 其中的DataRow是数据绑定行 这个判断语句的意思就是判断当前行是不是数据绑定行...
分类:
其他好文 时间:
2014-07-16 18:02:17
阅读次数:
181
1、查select row from table;select * from table;2、利用where子句查select row from table where a(=、、>、=、<=、between、like)b;select row from table where A AND B;se...
分类:
数据库 时间:
2014-07-16 17:50:45
阅读次数:
293
首先要知道选择行列操作时顺序是无关的
用两个数组row[i],col[j]分别表示仅选择i行能得到的最大值和仅选择j列能得到的最大值
这个用优先队列维护,没选择一行(列)后将这行(列)的和减去相应的np (mp)重新加入队列
枚举选择行的次数为i,那么选择列的次数为k - i次,ans = row[i] + col[k - i] - (k - i) * i * p;
既然顺序无关,...
分类:
其他好文 时间:
2014-07-14 16:44:35
阅读次数:
205
连接的是mysql数据库,插入数据时,控制台报:com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'user_name' at row 1错误,具体信息如下:严重: Servlet.servic...
分类:
数据库 时间:
2014-07-14 15:41:18
阅读次数:
249
N皇后问题,经典中的经典。 第一遍的时候,只有点思路,但是想不清楚,看了别人的代码。 方法一(Java): public class Solution { int[] row; int[] col; ArrayList res; int N; public vo...
分类:
其他好文 时间:
2014-07-13 22:21:25
阅读次数:
233
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 following triangle
[
[2],
[3,4],
[...
分类:
其他好文 时间:
2014-07-13 16:01:42
阅读次数:
209