第一种方法: 先把Excel另存为.csv格式文件,如test.csv,再编写一个insert.ctl 用sqlldr进行导入! insert.ctl内容如下: load data --1、控制文件标识 infile ‘my.csv‘ ...
分类:
数据库 时间:
2014-08-06 01:22:30
阅读次数:
326
删除:1、org.springframework.dao.DataIntegrityViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`life`.`tb_ad`, CO...
分类:
系统相关 时间:
2014-08-05 22:00:30
阅读次数:
288
#include#includeconst int MAXN=130;int dp[MAXN][MAXN];int calc(int n,int m){ if(dp[n][m]!=-1) return dp[n][m]; if(n0,1<=m<=N;My question is how man...
分类:
其他好文 时间:
2014-08-05 18:50:09
阅读次数:
218
报错1UnboundLocalError: local variable 'x' referenced before assignment定义了一个全局参数,但是在函数中直接改变参数值,就会报这个错误。例如x=0def my_test(): print x x=1修改方案1x=0def my_tes...
分类:
编程语言 时间:
2014-08-05 15:23:39
阅读次数:
240
Problem I
Teen Girl Squad
Input: Standard Input
Output: Standard Output
-- 3 spring rolls please.
-- MSG'D!!
-- Oh! My stomach lining!
Strong Bad
You are part of a grou...
分类:
其他好文 时间:
2014-08-05 14:09:29
阅读次数:
286
1 /* 2 目大意:输入一个数t,表示测试组数。然后每组第一行两个数字n,m,n表示有n只昆虫,编号从1—n,m表示下面要输入m行交配情况,每行两个整数,表示这两个编号的昆虫为异性,要交配。 3 要求统计交配过程中是否出现冲突,即是否有两个同性的昆虫发生交配。 4 5 思路:并查集 6 ...
分类:
其他好文 时间:
2014-08-05 13:59:39
阅读次数:
175
数据库分区:
概念:以mysql为例。mysql数据库中的数据是以文件的形式存在磁盘上的,默认放在/mysql/data下面(可以通过my.cnf中的datadir来查看),一张表主要对应着三个文件,一个是frm存放表结构的,一个是myd存放表数据的,一个是myi存表索引的。如果一张表的数据量太大的话,那么myd,myi就会变的很大,查找数据就会变的很慢,这个时候我们可以利用mysql的...
分类:
数据库 时间:
2014-08-05 11:14:39
阅读次数:
313
都是自己在实践过程中遇到的,首先是自己安装apache-maven进行简单的认识学习的时候想看看my-app项目的tree结果发现bash:treecommandnotfound解决这个问题,在查阅资料后发现,前提是我是centos6.5的最小化安装在家目录下打开文件.bash_profile后发现PATH=$PATH:$HOME/bin将其..
分类:
其他好文 时间:
2014-08-05 03:15:28
阅读次数:
245
A Bug's LifeTime Limit:10000MSMemory Limit:65536KTotal Submissions:28211Accepted:9177DescriptionBackgroundProfessor Hopper is researching the sexual b...
分类:
其他好文 时间:
2014-08-05 03:04:08
阅读次数:
242
An example of in-order traversal application. My intuition is that, we have to serialize it into an array and check, but in-order traversal does exact...
分类:
其他好文 时间:
2014-08-05 03:03:48
阅读次数:
241