上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: --创建表空间和数据库文件及默认表空间大小create tablespace twf_orcl datafile 'D:\oracle\install\product\11.2.0\ORADATA\ORCL\twf_orcl.DBF' size 200m;--设置数据库自动增长alter datab 阅读全文
posted @ 2018-01-15 15:57 vofill-work 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 1.在oracle中,数据表别名不能加as,如: select a.appname from appinfo a;-- 正确select a.appname from appinfo as a;-- 错误 也许,是怕和oracle中的存储过程中的关键字as冲突的问题吧 select a.appnam 阅读全文
posted @ 2018-01-15 10:51 vofill-work 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 存储过程创建语法: create or replace procedure 存储过程名(param1 in type,param2 out type) as 变量1 类型(值范围); 变量2 类型(值范围); Begin Select count(*) into 变量1 from 表A where列 阅读全文
posted @ 2018-01-15 10:50 vofill-work 阅读(2254) 评论(0) 推荐(0) 编辑
摘要: F9 resume programe 恢复程序 Alt+F10 show execution point 显示执行断点 F8 Step Over 相当于eclipse的f6 跳到下一步 F7 Step Into 相当于eclipse的f5就是 进入到代码 Alt+shift+F7 Force Ste 阅读全文
posted @ 2017-10-11 10:46 vofill-work 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 方法一:(效率最高)select * from test as a where typeindex = (select max(b.typeindex) from test as b where a.type = b.type );方法二:(效率次之)select a.* from test a,( 阅读全文
posted @ 2017-08-30 13:50 vofill-work 阅读(5989) 评论(2) 推荐(2) 编辑
摘要: 一、MySQL 为日期增加一个时间间隔:date_add()。 1、 示例: set @dt = now(); select date_add(@dt, interval 1 day); - 加1天 select date_add(@dt, interval 1 hour); -加1小时 selec 阅读全文
posted @ 2017-08-28 09:36 vofill-work 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 1、使用iTextAsian.jar中的字体 BaseFont.createFont("STSong-Light", "UniGB-UCS2-H",BaseFont.NOT_EMBEDDED);2、使用Windows系统字体(TrueType) BaseFont.createFont("C:/WIN 阅读全文
posted @ 2017-08-15 16:28 vofill-work 阅读(3510) 评论(1) 推荐(0) 编辑
摘要: fastJson在把json格式的字符串转换成JSONObject的时候,使用的是HashMap,所以排序规则是根据HASH值排序的,如果想要按照字符串顺序遍历JSON属性,需要在转换的时候指定使用LinkedHashMap代替HashMap。 阅读全文
posted @ 2017-08-03 19:49 vofill-work 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: MYSQL自带函数计算给定的两个日期的间隔天数 有两个途径可获得 1、利用TO_DAYS函数 select to_days(now()) - to_days('20120512') 2、利用DATEDIFF函数 select datediff(now(),'20120512') 参数1 - 参数2 阅读全文
posted @ 2017-07-21 10:32 vofill-work 阅读(51146) 评论(0) 推荐(3) 编辑
摘要: 1、没有创建索引,或者没有正确使用索引;2、存在死锁的情况,从而导致select语句挂起; 3、返回不必要的列,如很多人喜欢在程序中使用select * from 这样会查询表或视图中的所有字段,如果表或视图的数量比较大时候,就会浪费系统资源,应该只要返回必要的列 ;4、在select语句中使用wh 阅读全文
posted @ 2017-06-08 17:21 vofill-work 阅读(1476) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页