有以下几个查询结果,想要拼成一张表1.SELECT NAME,COUNT(1) AS Num1 FROM 表1 GROUP BY NAME;2.SELECT NAME,COUNT(1) AS Num2 FROM表1 WHERE EXC= 0 GROUP BY NAME;注:EXC数据类型为bit3....
分类:
其他好文 时间:
2014-06-27 21:59:03
阅读次数:
274
PHP获取指定日期的上个月的日期function last_month_today($time){ $last_month_time = mktime(date("G", $time), date("i", $time), date("s", $time), date("n", $time), .....
分类:
Web程序 时间:
2014-06-26 23:54:44
阅读次数:
324
设置su为不需要密码如果需要对某用户su命令也不需要输入密码,则需要修改下列的:1--->如果没有wheel组 则用sudo groupadd wheel创建 命令为 sudo groupadd wheel;2---->sudo vim /etc/group 将username和root加入到w.....
分类:
其他好文 时间:
2014-06-26 23:52:43
阅读次数:
605
将.a文件加入工程,很多教程讲的都是:右键选择Add->Existing Files…,选择.a文件和相应的.h头文件。或者将这两个文件拖入XCode工程目录结构中,在弹出的界面中勾选Copy items into destination group's folder(if needed),并确保A...
分类:
移动开发 时间:
2014-06-26 21:26:26
阅读次数:
296
第四章 视频编码基础1. 压缩码流语法:码流中各个元素的位置关系01001001…图像编码类型(01),宏块类型(00),编码系数1001等语义:每个语法元素所表达的意义。例如:图像编码类型2. 编码层次序列(Sequence)图像组(Group of Pictures,GOP)图像(Picture...
分类:
其他好文 时间:
2014-06-26 17:41:21
阅读次数:
240
1语句简介编辑GroupBy语句从英文的字面意义上理解就是“根据(by)一定的规则进行分组(Group)”。它的作用是通过一定的规则将一个数据集划分成若干个小的区域,然后针对若干个小区域进行数据处理。2. Group By 的使用:上面已经给出了对Group By语句的理解。基于这个理解和SQL S...
分类:
其他好文 时间:
2014-06-26 17:00:02
阅读次数:
186
ORA-00937: 非单组分组函数错误
select count(*), t.user_name
from sys_user t, sys_department a, sys_dep_type d
where t.dep_id = a.dep_id
and a.dep_id = d.dep_id
and t.recd_is_del = 0
group by t.u...
分类:
其他好文 时间:
2014-06-26 08:07:37
阅读次数:
231
#!/bin/sh
user="seqkit"
myDomain="hyldap"
passwd="******"
echo-n"">./passwd.ldif
echo-n"">./group.ldif
foriin$user
do
echo"Startwriteuserinfotopasswd.ldifgroup.ldif"
grep"^${i}:"/etc/passwd>>./passwd.ldif
grep"^${i}:"/etc/group>>./group.l..
分类:
其他好文 时间:
2014-06-25 10:22:23
阅读次数:
583
PHP日期转星期(英文/数字)<?php
$date="2014-06-24";
$datearr=explode("-",$date);
$year=$datearr[0];
$month=sprintf(‘%02d‘,$datearr[1]);
$day=sprintf(‘%02d‘,$datearr[2]);
$hour=$minute=$second=0;
$dayofweek=getdate(mktime($hour,$minute,$second,$month,$day..
分类:
Web程序 时间:
2014-06-25 06:05:01
阅读次数:
266