drop table e1 purge;drop table e2 purge;create table e1 as select ename,sal,hiredatefrom emp where 9=0;create table e2 as select ename,deptno,mgrfrom ...
分类:
其他好文 时间:
2014-06-15 19:53:02
阅读次数:
249
#includeusing namespace std;struct date{int year;int month;int day;};struct Person{string name;int age;bool gender;double salary;date birth;Person(){c...
分类:
编程语言 时间:
2014-06-15 10:37:12
阅读次数:
207
Hive的TRANSFORM关键字提供了在SQL中调用自写脚本的功能,适合实现Hive中没有的功能又不想写UDF的情况。例如,按日期统计每天出现的uid数,通常用如下的SQLSELECT date, count(uid)FROM xxxGROUP BY date但是,如果我想在reduce阶段对每天...
分类:
其他好文 时间:
2014-06-15 09:03:50
阅读次数:
243
查看哪个IP访问量大,访问了什么地址,大可以看到攻击者IP:select c-ip,count(c-ip) AS allcount,cs-uri-stem,cs-uri-query,cs(User-Agent)from#IISW3C# WHERE to_string(date,'yyyy-MM-dd...
分类:
其他好文 时间:
2014-06-15 07:55:08
阅读次数:
300
import java.util.Date;import java.util.TimeZone;import java.text.SimpleDateFormat;public class NowString { public static void main(String[] args) {...
分类:
编程语言 时间:
2014-06-15 07:34:32
阅读次数:
322
Linux系统管理常用命令分类:Linux2011-01-10 18:261538人阅读评论(0)收藏举报linuxcommandservicenginxuserunix目录(?)[+]1. 时间date1)显示当前时间: date .//Wed Jul 29 11:05:11 CST 20092)...
分类:
系统相关 时间:
2014-06-14 23:43:19
阅读次数:
599
USE [Travel]GO/****** Object: StoredProcedure [dbo].[NoticeGetPagedData] Script Date: 06/13/2014 20:44:51 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIF...
分类:
数据库 时间:
2014-06-14 19:45:10
阅读次数:
255
原文:MySQL取得当前时间的函数是什么 格式化日期的函数是什么取得当前时间用 now() 就行。在数据库中格式化时间 用DATE_FORMA T(date, format) .根据格式串format 格式化日期或日期和时间值date,返回结果串。 可用DATE_FORMAT( ) 来格式化DATE...
分类:
数据库 时间:
2014-06-14 18:33:24
阅读次数:
263
Access restriction: The type CachedRowSetImpl is not accessible due to restriction on required library E:\MyEclipse10\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\lib\rt.jar...
分类:
其他好文 时间:
2014-06-14 11:31:26
阅读次数:
195