测试程序的时候产生了一些空白行(null),删除它们的方法是:在新建查询里面写入SQL语句:delete from 表名where 字段1 is null and 字段2 isnull
分类:
数据库 时间:
2014-09-21 12:50:50
阅读次数:
197
查询表、子查询表、有序查询表
表头还是要加上标记,这个没什么说的。构造参数列通常是为了提供查询条件(可省略)。fixture代码里面需要注意的是一定要有个无参数的query方法,返回值是List。这个List有点复杂,是三层List的一个集合,分别对应于表、行、字段。口头表述不很清楚,还是看下面的代码好了。返回的结果和页面上的数据进行比较。查询表适合对关系数据库的查询结果进行验证。...
分类:
其他好文 时间:
2014-09-21 10:18:30
阅读次数:
213
换了源之后执行 apt-get update 总会阻在【23% waiting for headers】的地方。上网看了一些解决方法,有说删除archieves文件夹下的所有内容,有说要换源的。两种我都尝试过,不过好像还是换源比较有效。记录一下这次换的源——2014年9月21日08:54:06deb...
分类:
其他好文 时间:
2014-09-21 10:14:20
阅读次数:
238
关于update和alter:百度知道上关于update和alter有一个很形象的总结: 一个表有很多字段,一个字段里有很多数据。 一个家有很多房间,一个房间里有很多家具。 update是用来将衣柜改成书架的。 alter是用来将厨房改成厕所的。把卧室改成厕所: alter table 你家 cha...
分类:
数据库 时间:
2014-09-21 04:11:29
阅读次数:
288
1, Insert
MongoDB is database storing document object, the type of which is called Bson.(like JSON);
Example: // document defination
Now after using command[db.posts.insert(doc)], you will...
分类:
数据库 时间:
2014-09-21 01:19:39
阅读次数:
380
To list all users you can use:cut -d: -f1 /etc/passwdTo add a new user you can use:sudo adduser new_usernameTo remove/delete a user, first you can use...
分类:
其他好文 时间:
2014-09-20 23:51:19
阅读次数:
325
change the jdbc request : 1.change the driver name,connection string,query string or assert. the object we will use here is : JdbcRequestTestStep Test...
分类:
数据库 时间:
2014-09-20 21:03:49
阅读次数:
320
尽 管是上面讲到的《JavaScript高级程序设计》(第二版)中提到,BOM中的location.path/query…… (window.location)在通过JavaScript更改以后,浏览器都会通过刷新来到达你更改后的URL(location的意思就是位 置。。)而在JavaScript...
原理讲的清晰:Manacher's ALGORITHM: O(n)时间求字符串的最长回文子串注意:①动态生命P[]和newStr数组后,不要忘记delete[] //其实这是基本的编码习惯②最终返回结果是P[i]-1下面是自己写的Manacher函数int manacher(char *src){ ...
分类:
其他好文 时间:
2014-09-20 19:44:09
阅读次数:
213
java.lang.StringBuffer可变的字符串String之间的连接是通过开辟一块新的内存 让后将它们拷贝进来StringBuffer则可以直接在后面追加方法: append(charc) delete(intstart, intend) insert(intoffset...
分类:
其他好文 时间:
2014-09-20 17:03:29
阅读次数:
174