_xkoko
COCO 很懒 什么都没留下......
摘要: 数据结构 单独写了一个函数 返回树的每一级的id 调用 select t.id, getpids(t.tree_id) from table t 【tree_id 为数据结构中表的主键id】 阅读全文
posted @ 2018-08-03 18:11 _xkoko 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 功能:返回其参数中的第一个非空表达式,当你要在n个字段中选取某一个非空值 coalesce函数返回参数(列名)中第一个非NULL的字段值,注意不是为空'' 阅读全文
posted @ 2018-08-03 17:58 _xkoko 阅读(177) 评论(0) 推荐(0) 编辑
摘要: String bookNo="1"; Date date=new Date(); SimpleDateFormat sdf1=new SimpleDateFormat("yyyyMMdd"); String times=sdf1.format(date); NumberFormat f= new DecimalFor... 阅读全文
posted @ 2018-08-03 16:33 _xkoko 阅读(787) 评论(0) 推荐(0) 编辑
摘要: -- CLOB字段查询 成文本 (这个有啥用??) select dbms_lob.substr(t.CLOB字段) as text from 表名称 t -- CLOB字段为查询条件 模糊查询 dbms_lob.instr(CLOB字段,'要匹配的文字',1,1)0 -- CLOB字段为查询条件 精确查询 dbms_lob.compare(CLOB字段, to_clob('要匹配的文字')) ... 阅读全文
posted @ 2018-08-02 11:11 _xkoko 阅读(858) 评论(0) 推荐(0) 编辑
摘要: cmd命令 1.system 导出全部表结构和数据 注意 :1.导出服务器的地址 @192.168.1.252:1521/orcl 2. 登录名 owner=orcl (当前用户的登录名) 3. 导出文件的位置 file=D:\oracle\zkgs 4. 导出日志文件的位置 log=D:\orac 阅读全文
posted @ 2018-07-27 17:04 _xkoko 阅读(519) 评论(0) 推荐(0) 编辑
摘要: -- Create table create table MNT_USER ( id NVARCHAR2(50) not null, name NVARCHAR2(50), phone NVARCHAR2(50), idcard NVARCHAR2(50), email NVARCHAR2(100), data_status NVARCHAR2(12) default 0, mnt_org_no... 阅读全文
posted @ 2018-07-27 16:40 _xkoko 阅读(510) 评论(0) 推荐(0) 编辑
摘要: // json JSON.toJSONString(json,SerializerFeature.WriteMapNullValue); String jsonString = JSON.toJSONString(user); Map json=JSON.parseObject(jsonString); JSONObject jsonparm=new JSONObject(map); St... 阅读全文
posted @ 2018-07-27 15:38 _xkoko 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 后台实现 阅读全文
posted @ 2018-07-27 15:35 _xkoko 阅读(1906) 评论(0) 推荐(0) 编辑
摘要: --String 类型 转化为 年月日 yyyy-mm-dd to_date(substr(t.submit_time,1,10))) 如果统计一年 需要用 left join (select level mymonth from dualconnect by level<13) n left jo 阅读全文
posted @ 2018-07-27 15:09 _xkoko 阅读(6918) 评论(1) 推荐(0) 编辑
摘要: select a, b, to_char(round(a*100/b, 2)) || '%' as cfrom table_nameorder by (a/b); 阅读全文
posted @ 2018-07-27 14:55 _xkoko 阅读(1516) 评论(0) 推荐(0) 编辑