`
butterluo
  • 浏览: 54177 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
注意是如何区分视图的 利用javascript将当前网页内容导出到新建的word文档 <script language="javascript"> function OpenWord(){ Layer1.style.border=0 ExcelSheet = new ActiveXObject('Word.Application'); ExcelSheet.Application.Visible = true; var mydoc=Excel ...
在javascript中如何得到中英文混合字符串的长度。 用的是正则表达式。 var str = ”坦克是tank的音译”; var len = str.match(/[^ -~]/g) == null ? str.length : str.length + str.match(/[^ -~]/g).length ; 我查了一下书,有点明白了: 西文常用字符集由空格“ ”(0x20)到“~”(0x7e)构成,汉字会落在这个字符集外,而正则表达式[^ -~]表示除空格到“~”外的字符集。 string.match(regex) 会以数组形式返回字符串string中匹配正则表达式reg ...
--当该人是选案人员时 select qt.ajbh, qt.lrajbh, nsr.nsrsbh, nsr.nsrmc, jg.swjg_mc, zt.jczt_mc, qt.sfla from ctais2wg.t03_qtajxx qt ,ctais2wg.t03_ayxsqc ay ,ctais2wg.dm_jczt zt ,ctais2wg.dj_nsrxx nsr ,ctais2wg.dm_swjg jg where qt.AYXSCLR_DM = '14401000192' --该人 ...
SELECT * FROM (SELECT a.*, ROWNUM row_num FROM (SELECT t1.ajbh, t1.lrajbh, t2.nsrsbh, t2.nsrmc, t4.swjg_mc, t5.jczt_mc, CASE WHEN t1.zgajwcrq IS NOT NULL THEN TRUNC (SY ...

子查询的应用

    博客分类:
  • sql
/* Formatted on 2007/12/20 18:12 (Formatter Plus v4.8.8) */ SELECT * FROM (SELECT w.workitem_id, w.m_id, w.process_def_id, w.process_def_name, w.process_ins_id, w.process_ins_name, w.activity_in ...

exists 的应用

    博客分类:
  • sql
SELECT cq.ayxsbh, cq.process_ins_id, nsr.nsrsbh, nsr.nsrmc, jg.swjg_mc FROM t03_cqzb cq, t03_ayxsqc ay, dm_swjg jg, dj_nsrxx nsr WHERE cq.process_ins_id = 2991 AND SYSDATE > cq.jzrq AND NOT EXISTS ( SELECT 1 FROM t03_cqzb_wc wc WHER ...
/*日期的操作包含在子查询中,oracle测试通过*/ SELECT count(*),  c.lrr_dm               FROM jc_ajxx c              WHERE c.jczt_dm IN ('01', '02', '10')                 and c.ajbh in                     (select count(*),aa.lrr_dm from                         (select cc.lrr_dm, cc.ajbh, (sysdate - (cc.aydjrq + 9)) as ...
/*tested in oracle*/ /* you can use select statment in then clause*/ SELECT CASE bh.zajlx           WHEN '2'              THEN (SELECT qt1.sfdb                      FROM t03_qtajxx qt1                     WHERE qt1.ajbh = bh.ajbh)           WHEN '1'              THEN (SELECT cta1.sfdb                 ...
Global site tag (gtag.js) - Google Analytics