做了一个功能需要分组查询,同时查询A表分组查询的ID需要关联B表的数据,本来想两个表关联查询,但是报group by 语法不正确。所以做了以下修改。select count(*),cindexid,(select vindexcode from comindex where pk_index =ci...
分类:
数据库 时间:
2014-07-09 20:04:57
阅读次数:
224
1.myisam,bdb,innodb,memory 单表至少支持16个索引2.create index id_index on emp (id) 为emp表创建一个名为id_index的id字段的索引3.drop index id_index on emp 删除emp表的id_index 索引4....
分类:
数据库 时间:
2014-07-08 22:42:14
阅读次数:
306
1.查询索引数量select table_name, count(*) cnt from user_indexes where index_type='NORMAL' group by table_namehaving count(*) >= 1order by cnt desc ;2.查询外键未....
分类:
数据库 时间:
2014-07-08 22:40:18
阅读次数:
308
jQueryt过滤选择器基本过滤选择器选择器描述返回示例重要:first返回第一个元素单个元素:last返回最后一个元素单个元素:not(selector)除去与给定选择器匹配的元素集合元素☆:even偶数元素集合元素:odd奇数元素集合元素:eq(index)返回集合中指定索引的元素,索引0开始单...
分类:
Web程序 时间:
2014-07-08 21:53:29
阅读次数:
364
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=12811384599010340All in AllAcceptedC++0.0262014-07...
分类:
其他好文 时间:
2014-07-08 21:50:11
阅读次数:
230
最近在玩Thinkphp,废话不多说,说正事.
客户端js提交代码
1 $.post('http://localhost/app/index.php/Index/Index/handle',{username : document.getElementById('username').value,content : document.getElementById('content')....
分类:
Web程序 时间:
2014-07-08 18:44:07
阅读次数:
231
Javascript --替换字符串中index处字符...
分类:
编程语言 时间:
2014-07-08 18:35:30
阅读次数:
199
从命令行执行django数据库操作,报错:
django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before acce...
分类:
数据库 时间:
2014-07-08 17:57:04
阅读次数:
495
如何调试分析Android中发生的tombstoneAndroid中较容易出现以下三类问题:Force close / ANR / Tombstone前两者主要是查看当前的进程或者系统框架层的状态和堆栈就基本可以分析出来,本文主要讨论一下tombstone的情况。tombstone一般是由Dalvi...
分类:
移动开发 时间:
2014-07-08 11:37:01
阅读次数:
195
rewrite(.*)http://192.168.1.22/index.htm?permanent;nginxrewrtie的时候会带上参数,在结尾带上?的话,nginx将丢弃请求中的参数。
分类:
其他好文 时间:
2014-07-08 08:54:01
阅读次数:
683