查询分类单表查询:简单查询多表查询:连接查询联合查询:多个查询结果汇总查询的组成投影查询:挑选要显示的字段select
array1,array2,... from tb_name;选择查询:挑选符合条件的行select * from tb_name
where-clausewhere-clause...
分类:
数据库 时间:
2014-05-14 03:08:33
阅读次数:
440
select devicetoken from client_user group by
devicetoken having count(devicetoken)>1
分类:
数据库 时间:
2014-05-12 02:16:42
阅读次数:
273
两种方法:1.使用pkill命令 1.1 通过who 或则 w 查看当前连接的用户 例如: w
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT jjony pts/0 xxx.xxx.xxx.xxx ...
分类:
系统相关 时间:
2014-05-12 01:32:34
阅读次数:
410
蓝手指测试安卓比较给力,尤其含有安卓原生态的多语言是现在厂商手机所无法提供了的。
但是有一点需要注意:BlueStack的日志文件非常大,日志目录默认是%Sysem Dir%/Program
Data(隐藏文件)/BlueStacks/logs,发现系统盘告急之后,直接删掉里面的数据即可;我这里大概...
分类:
移动开发 时间:
2014-05-12 00:17:42
阅读次数:
385
/*1、线性表练习(1)从给定顺序表A中删除元素值在x到y(x=x&&A[i]max)
max=A[i]; else if(A[i]data=e; L->next=NULL; } else { if(i==1) ...
分类:
其他好文 时间:
2014-05-11 23:26:26
阅读次数:
384
这里用邻接表实现图的深度优先遍历,采用递归实现。
#include
using namespace std;
#define VERTEXNUM 5//结点数
struct edgenode
{
int to;
int weight; // 边的权值
edgenode *next;
};
struct vnode
{
int from...
分类:
其他好文 时间:
2014-05-11 20:46:16
阅读次数:
519
读写本应用程序数据文件夹中的文件
此种方法读写的文件在/data/data/中
android 中提供了 openFileInput(String fileName)
和 openFileOutput(String fileName, int mode) 两个方法来读取本应用程序数据文件夹中的文件和向其写入。
openFileInput...
分类:
移动开发 时间:
2014-05-11 18:34:50
阅读次数:
480
offset大的时候的比较SELECT * FROM persons LIMIT
200000,10;耗时0.078sSELECT *FROM persons WHERE id>=(SELECT id FROM persons
ORDER BY id LIMIT 200000,1) LIMIT 10...
分类:
数据库 时间:
2014-05-11 16:23:57
阅读次数:
322
Reverse a linked list from positionmton. Do it
in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m=
2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-05-11 16:03:43
阅读次数:
327
//链表操作:建立、插入、删除、查找、倒置、删除等基本操作
#include
#include
typedef
struct LNode
{
int data;
structLNode *next;
}LNode,*Llist;
LNode *creat_head();//创建一个空表
void creat_list(LNode *,int);//创...
分类:
其他好文 时间:
2014-05-11 03:33:11
阅读次数:
351