摘要: 例子: create or replace procedure p_xl is v_count NUMBER(10); begin for rs in(select yhbh from dbyh) loop v_count := osm_pkg_arc_limited_configs.F_LIMIT 阅读全文
posted @ 2017-06-27 16:41 为了八千块 阅读(1172) 评论(0) 推荐(0) 编辑
摘要: 1. 授予行迁移权限 alter table table_name enable row movement; 2. 到15分钟前: flashback table order to timestamp systimestamp - interval '15' minute; 到某个时间点: FLAS 阅读全文
posted @ 2017-06-26 16:19 为了八千块 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 方法一: delete from dbyh where yhbh in(select yhbh from dbyh group by yhbh having count(*)>1) androwid not in (select min(rowid) from dbyh group by yhbh 阅读全文
posted @ 2017-06-26 09:20 为了八千块 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 1.查出含有空格或换行符的行 select id from osm_t_arc_contacts x where instr(x.address, chr(10) )> 0 or instr(x.address,chr(13))>0; 2.去掉update osm_t_arc_contacts se 阅读全文
posted @ 2017-06-23 14:39 为了八千块 阅读(356) 评论(0) 推荐(0) 编辑
摘要: create table tb_student( id NUMBER(10) not null, createtime DATE not null, constraint PK_tb_student primary key (id) 主键约束); 注释comment on table tb_stud 阅读全文
posted @ 2017-05-25 15:28 为了八千块 阅读(220) 评论(0) 推荐(0) 编辑
摘要: import java.util.ArrayList;import java.util.List; import org.junit.Test; public class TestList { //ArrayList:List的主要实现类 /* * List中相对于Collection,新增加的方法 阅读全文
posted @ 2017-05-24 23:50 为了八千块 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Collection c=new ArrayList(); c.add(123); //迭代器遍历集合 Iterator i=c.Iterator(); while(i.hasNext()) { System.out.println(i.next()); } //增强for循环 遍历 for(obj 阅读全文
posted @ 2017-05-24 23:38 为了八千块 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 删除一列和数据一起删除了。 ALTER TABLE 表名 DROP COLUMN 列名; 添加一列 alert table 表名 add column 列名; 只删除一列的数据 没有方法,可以把这列的值设为null; update table 表名 set 表名.列名=null; 阅读全文
posted @ 2017-05-23 17:29 为了八千块 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Swing 是一个为Java设计的GUI工具包。 Swing是JAVA基础类的一部分。 Swing包括了图形用户界面(GUI)器件如:文本框,按钮,分隔窗格和表。 Swing提供许多比AWT更好的屏幕显示元素。它们用纯Java写成,所以同Java本身一样可以跨平台运行,这一点不像AWT。它们是JFC 阅读全文
posted @ 2017-05-23 15:23 为了八千块 阅读(220) 评论(0) 推荐(0) 编辑
摘要: SQL中的单记录函数1.ASCII返回与指定的字符对应的十进制数;SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual; A A ZERO SPACE 65 97 48 32 2.CHR给出整 阅读全文
posted @ 2017-05-22 14:48 为了八千块 阅读(479) 评论(0) 推荐(0) 编辑