2013年1月24日

Oracle 查询

摘要: -- 集合操作--union 并集 苏偶有内容都查询,重复的显示一次select * from emp union select * from emp20;--union all 并集 所有内容都显示 包括重复select * from emp union all select * from emp20;--intersect 交集select * from emp intersect select * from emp20;--minus 差集 只显示对方没有的 与顺序有关select * from emp minus select * from emp20;--子查询--单行子查询 s.. 阅读全文

posted @ 2013-01-24 15:35 AlexGeng 阅读(984) 评论(0) 推荐(1) 编辑

oracle 函数(一)

摘要: /*字符函数*/ /*变成大写*/ select Upper('abcde') from dual; /*变成小写*/ select lower('ADCSE') from dual; /*第一个字母变成大写*/ select Initcap('dkdkdkdkd') from dual; /*合并 阅读全文

posted @ 2013-01-24 12:12 AlexGeng 阅读(1497) 评论(5) 推荐(1) 编辑

导航