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
iOS开发项目—07图片拉伸一、简单说明1.代码说明:图片处理代码:1 + (UIImage *)resizedImage:(NSString *)name2 {3 UIImage *image = [UIImage imageWithName:name];4 return [ima...
分类:
移动开发 时间:
2014-07-08 22:29:29
阅读次数:
321
在"安装Git"一节中,我们已经配置了user.name和user.email,实际上,Git还有很多可配置项。比如,让Git显示颜色,会让命令输出看起来更醒目:$ git config --global color.ui true这样,Git会适当地显示不同的颜色,比如git status命令:文...
分类:
其他好文 时间:
2014-07-08 22:20:13
阅读次数:
243
在Git中打标签非常简单,首先,切换到需要打标签的分支上:$ git branch* dev master$ git checkout masterSwitched to branch 'master'然后,敲命令git tag name就可以打一个新标签:$ git tag v1.0可以用命令g....
分类:
其他好文 时间:
2014-07-08 22:12:20
阅读次数:
227
00编写一个程序,接受用户的输入并保存为新的文件:def file_write(file_name): f = open(file_name, 'w') print('请输入内容【单独输入\':w\'保存退出】:') while True: write_some ...
分类:
其他好文 时间:
2014-07-08 22:10:19
阅读次数:
353
1 /************************************************************************* 2 > File Name: pass_fd.c 3 > Author:Monica 4 > Mail:lili...
分类:
其他好文 时间:
2014-07-08 21:56:53
阅读次数:
259
glusterfs中的内存管理方式: 1 struct mem_pool * 2 mem_pool_new_fn (unsigned long sizeof_type, 3 unsigned long count, char *name) 4 { 5 ...
分类:
其他好文 时间:
2014-07-08 21:50:47
阅读次数:
441
实现一个简化的printf函数,能够处理%d,%f,%s,%c等格式。/************************************************************************* > File Name: permutation.c > Creat...
分类:
其他好文 时间:
2014-07-08 11:47:22
阅读次数:
274
//举例查询(userid,name,sex为user表的数据库字段)publicfunctiontesta(){$this->load->database();$query=$this->db->query(‘SELECT*FROMuser‘);foreach($query->result()as$row){echo$row->userid;echo$row->name;echo$row->sex;}}//举例插入(use..
分类:
数据库 时间:
2014-07-08 08:41:54
阅读次数:
273
if(!string.IsNullOrEmpty(COURSEWARE_NAME.Text))
{
char[]c=COURSEWARE_NAME.Text.ToCharArray();
stringnameconditiob="";
for(inti=0;i<c.Length;i++)
{
if(i==0)
{
br.AppendFormat("andCOURSEWARE_NAMElike‘%{0}%‘",c[i].ToString());
}
else
{
br.AppendFormat("andC..
分类:
Web程序 时间:
2014-07-08 08:25:50
阅读次数:
242