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
所谓匹配模式就是用户如何根据关键字在索引库中查找相关的记录。
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
原文 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
先上效果图,选择不同的模块,滑动会通过动画形式滑过去,这种适合新闻客户端多种栏目的展示:
这么写Layout:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="...
分类:
移动开发 时间:
2014-07-01 15:43:33
阅读次数:
198
蛋疼的题目描述,看了好长好长时间才看懂,题目本身是很简单的。Designer给出一串长度为N的Code,Breaker用Guess来破译。对于两串数字,如果有同一列相等的数字,那么叫做strong match,位于不同列的相等的两个数字,叫做weak match。题目要求就是先输出strong的个数...
分类:
其他好文 时间:
2014-07-01 09:14:15
阅读次数:
227