1.现象:.创建不出来数据库,
解决:测试用的项目包明以db结尾了,重新创建项目改成dbtest就没事了。
2.现象;创建出来数据库,但是数据库中没有表项
解决:db.execSQL("create table " + TABLE_NEWS_NAME + " ( " + TABLE_NEWS_ID + " integer primary key autoincrement, " + TABL...
分类:
数据库 时间:
2014-08-03 18:05:05
阅读次数:
252
listen 80; listen 443; ssl on; ssl_certificate /passport.crt; ssl_certificate_key /passport.key; ssl_session_timeout 5m; server_name lo...
分类:
编程语言 时间:
2014-08-03 12:32:55
阅读次数:
348
1 find find({查询条件},{"key":1,"email":1})? 后面表示返回哪些键 2 可用的比较操作符 $lt , $lte,$gt,$gte 比如db.users.find({"age":{"$gte":18,"$lte":30}}) 3不等于 find(...{"key":{"$ne":"value"}} 4 ...
分类:
数据库 时间:
2014-08-03 10:23:35
阅读次数:
312
Hadoop学习笔记(7) ——高级编程 从前面的学习中,我们了解到了MapReduce整个过程需要经过以下几个步骤: 1.输入(input):将输入数据分成一个个split,并将split进一步拆成。 2.映射(map):根据输入的进生处理, 3.合并(combiner):合并中间相两同的key....
分类:
其他好文 时间:
2014-08-02 23:20:14
阅读次数:
415
Git:是一个分布式的源代码管理工具,Linux内核的代码就是用Git管理的所以它很强,也很快,和 Vss/SVN比起来本地Git初始化配置及其使用:1.初始化本地Git库:打开Git Bash命令行>>git init2. 要使用GitHub,首先需要创建SSH Key,SSH将用来加密本机与远端...
分类:
其他好文 时间:
2014-08-02 20:48:24
阅读次数:
174
– 查询(或更新,删除,可以转换为查询)没有用到索引
这是最基础的步骤,需要对sql执行explain查看执行计划中是否用到了索引,需要重点关注type=ALL, key=NULL的字段。
– 在索引字段上施加函数
to_char(gmt_created, ‘mmdd’) = ...
分类:
数据库 时间:
2014-08-02 20:40:24
阅读次数:
282
This paper attempts to analyze the characteristics from the attacker's point of view about the currentopen source rootkit key technology, hope can fin...
分类:
系统相关 时间:
2014-08-02 18:18:34
阅读次数:
786
首先必须要有外键,InnoDB甚么的都不说了,直接上修改句子。ALTER TABLE `t_terminal`DROP FOREIGN KEY `FK704405E7F06A14EF`;ALTER TABLE `t_terminal`ADD CONSTRAINT `FK704405E7F06A14E...
分类:
数据库 时间:
2014-08-02 18:17:23
阅读次数:
219
//Foundation中的字典NSDictionary是由键-值对组成的数据集合。key(键)的值必须是唯一的
/*****************不可变字典*****************/
//字典的初始化
NSDictionary?*dic1?=?[NSDictionary?dictionar...
分类:
其他好文 时间:
2014-08-02 15:44:34
阅读次数:
252
A major function of the DataView is to allow for data binding on both Windows Forms and Web Forms.Additionally, a DataView can be customized to presen...
分类:
其他好文 时间:
2014-08-02 15:19:43
阅读次数:
175