1、错误描述
java.sql.SQLException:Column count doesn't match value count at row 1
2、错误原因
在插入数据时,插入的字段个数跟数据库表字段个数不一致
insert into student(sno,sname,sage,ssex) values(1,'张三丰','man');
3、解决办...
分类:
数据库 时间:
2014-07-08 20:14:16
阅读次数:
286
1、main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"...
分类:
移动开发 时间:
2014-07-08 20:00:21
阅读次数:
277
一些流行的应用的ListView的Item类似下图:
ListView的Divider没有没有覆盖到图片
可以这种来实现,先定义ListView在Layout中:
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"...
分类:
其他好文 时间:
2014-07-08 14:58:12
阅读次数:
245
题目:http://uva.onlinejudge.org/external/110/11020.pdfProblem IEfficient SolutionsInput: Standard InputOutput: Standard Output"Our marriage ceremonies a...
分类:
其他好文 时间:
2014-07-07 10:56:47
阅读次数:
160
所谓匹配模式就是用户如何根据关键字在索引库中查找相关的记录。
SPH_MATCH_ALL, 匹配所有查询分词(默认模式);
如“手机配件”,不匹配 “我有一部手机”,但可以匹配 “手机坏了,需要找配件”。
因为“手机配件” 被分成 “手机”,“配件”两个词,匹配条件是必须同时包含这两个词,所以“我有一部手机”不符合匹配要求。
SPH_MATCH_ANY, 匹配查询词...
分类:
其他好文 时间:
2014-07-06 12:25:57
阅读次数:
293
<EditText
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="输入单位"
android:layout_marginLef...
分类:
移动开发 时间:
2014-07-06 12:06:32
阅读次数:
296
java的aes代码缺省不会设置IV而且采用ECB模式。WinAES需要为此做适配。...
分类:
编程语言 时间:
2014-07-06 10:37:08
阅读次数:
171
原文 http://www.jb51.net/article/28007.htmjs正则函数match、exec、test、search、replace、split使用介绍集合,学习正则表达式的朋友可以参考下。match 方法 使用正则表达式模式对字符串执行查找,并将包含查找的结果作为数组返回。 ....
分类:
Web程序 时间:
2014-07-05 22:16:55
阅读次数:
491
要使用正则匹配任意字符的话,通常有以下几种方法,这里我分别对每一种方法在使用的过程中做一个总结:第一种方式:[.\n]*?示例?View Code PHPpreg_match_all('/[.\n]*?/i', $content, $data);按道理这种方式应该是可以的,但我测试发现不行,因为这里...
分类:
Web程序 时间:
2014-07-02 20:02:39
阅读次数:
178
:g/^$/d:g will execute a command on lines which match a regex. The regex is 'blank line' and the command is :d (delete)g 会执行一个正则表达式的命令,能删除文本里面的空行。
分类:
其他好文 时间:
2014-07-02 14:30:51
阅读次数:
282