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
Velocity知识点总结
1. 变量
(1)变量的定义:
#set($name = "hello") 说明:velocity中变量是弱类型的。
当使用#set 指令时,括在双引号中的字面字符串将解析和重新解释,如下所示:
#set($directoryRoot = "www" )
#set($templateName = "index.vm" )
...
分类:
其他好文 时间:
2014-07-08 20:55:01
阅读次数:
195
最近在玩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
区间颜色不一致就更新到底,否则lazy标记
#include
#include
#include
#include
using namespace std;
#define lc l,m,index<<1
#define rc m+1,r,index<<1|1
#define N 100005
#define ll __int64
struct node
{
bool same;
ll c...
分类:
其他好文 时间:
2014-07-08 18:00:56
阅读次数:
226
从命令行执行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
直接上代码:#include //必要的头文件,使用Windows API函数
#include
int index = 0;
int tickets = 100;//票数
HANDLE hMutex; //使用全局的互斥对象来保证对同一资源的互斥访问与操作这里是tickets
//线程处理函数原型,形式可从MSDN中拷贝
//线程1 的入口函数
DWORD WINAPI Fun1Proc...
分类:
编程语言 时间:
2014-07-08 17:12:03
阅读次数:
239
一、配置资源文件
1.下载资源文件http://download.csdn.net/detail/hhxin635612026/7602027
2.新建myeclipse项目,放入相应位置,如图1-1所示
图1-1
3.在index.jsp中引入javascript等资源文件...
分类:
Web程序 时间:
2014-07-08 15:55:10
阅读次数:
193
rewrite(.*)http://192.168.1.22/index.htm?permanent;nginxrewrtie的时候会带上参数,在结尾带上?的话,nginx将丢弃请求中的参数。
分类:
其他好文 时间:
2014-07-08 08:54:01
阅读次数:
683