create table users (name char(2),value char(1),id number); insert into users values('甲','a…
#数据表的结构为stu_id(学号) ,stu_name(姓名),stu_sex(性别),cla_id(班级编号),stu_phone(手机号) drop procedure if…
1、以前统计总量pv,uv和各分类的pv,uv都这么写也就是 SELECT a.type,a.pv,a.uv FROM ( SELECT type,count(1) as pv,C…
#!/usr/bin/phthon import os import time import commands import shutil import threading fro…
/* 查询2013-11-25至2014-12-28内所有日期天数 */ select date '2013-11-25' + (rownum - 1) dt from dual …
select lpad(rownum, 2, 0) ymd from dual connect by rownum <= (SELECT add_months(trunc(t…
use master go sp_configure 'show advanced options',1 reconfigure with override go sp_confi…
SELECT DATEADD(hh,DATEDIFF(hh,0,Date),0) [Hour] FROM [t1] group by DATEDIFF(hh,0,Date)
insert into t_store(resource_id,store_code,store_name,store_type,is_stop,address,tel,mobil…
waitfor delay '00:00:07'
if exists(select * from sysobjects where name = ’accountInfo’) drop tabl…
FILENAME: 2014-06-25.doc DATE:June 25, 2014 create table manager.tijiu (rec_ctrl_id char(1…
sql 根据指定条件获取一个字段批量获取数据插入另外一张表字段中