摘要: --内连接 两种写法 等值连接select r.*,b.bummc from t_hq_ryxx r, t_hq_bm b where r.bumbm = b.bumbmselect r.*,b.bummc from t_hq_ryxx r inner join t_hq_bm b on r.bum... 阅读全文
posted @ 2015-10-29 17:06 老趙 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-10-28 14:33 老趙 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-10-28 09:42 老趙 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 建表 阅读全文
posted @ 2015-10-27 19:48 老趙 阅读(150) 评论(0) 推荐(0) 编辑
摘要: --查询全表select * from t_hq_ryxx;--查询字段select xingm as 姓名 ,gongz as 工资 from t_hq_ryxx;--链接字段查询select xingm || xingb as 姓名性别 from t_hq_ryxx--去除重复查询select ... 阅读全文
posted @ 2015-10-27 16:29 老趙 阅读(167) 评论(0) 推荐(0) 编辑
摘要: //创建一个名为TEST1的表空间CREATE SMALLFILE TABLESPACE "TEST1" DATAFILE 'G:\ORACLE_11G\ORADATA\ORCL\TEST1' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LO... 阅读全文
posted @ 2015-10-27 09:36 老趙 阅读(244) 评论(0) 推荐(0) 编辑
摘要: --创建表T_HQ_BM2--create table t_hq_bm2 as select * from t_hq_bm;commit;--添加行内容--insert into t_hq_bm2 values ('105','宣传部','22222222');commit;--删除部门编码为105... 阅读全文
posted @ 2015-10-27 09:31 老趙 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Oracle PL/SQL入门之慨述一、PL/SQL出现的目的 结构化查询语言(Structured Query Language,简称SQL)是用来访问关系型数据库一种通用语言,它属于第四代语言(4GL),其执行特点是非过程化,即不用指明执行的具体方法和途径,而是简单的调用相应语句来直接取得结果... 阅读全文
posted @ 2015-10-22 17:00 老趙 阅读(151) 评论(0) 推荐(0) 编辑
摘要: package jihe;public class Emp { private String id; private String name; public String getId() { return id; } publ... 阅读全文
posted @ 2015-10-17 08:42 老趙 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Set hs = new HashSet(); hs.add("A"); hs.add("a"); hs.add("c"); hs.add("C"); hs.add("a"); for... 阅读全文
posted @ 2015-10-16 19:43 老趙 阅读(85) 评论(0) 推荐(0) 编辑