摘要: Oracle系列《一》:简单SQL与单行函数 使用scott/密码用户下的emp表和dept表完成下列练习,表的结构说明如下 emp员工表(empno员工号/ename员工姓名/job工作/mgr上级编号/hiredate受雇日期/sal薪金/comm佣金/deptno部门编号) dept部门表(d 阅读全文
posted @ 2022-02-16 22:43 三天乐趣 阅读(1288) 评论(0) 推荐(0) 编辑
摘要: oracle安装与配置:点击下载指导文档 示例环境配置: 在sqlplus下执行 set oracle_sid=ORCL 安装数据库时,创建数据库实例SID 。 sqlplus /nolog 以无需登录的方式在服务器本机上进入SQL*Plus控制台 conn sys/密码 as sysdba;--连 阅读全文
posted @ 2022-02-16 22:43 三天乐趣 阅读(47) 评论(0) 推荐(0) 编辑
摘要: oracle思维导图:点击下载.mmap文档 此文档只能使用专用的MindManager打开,百度后搜索“mindmanager2012汉化版”,安装后有30天使用期。 存笔记 阅读全文
posted @ 2022-02-16 22:43 三天乐趣 阅读(103) 评论(0) 推荐(0) 编辑
摘要: --习题1:写出LAST_NAME列和FIRST_NAME列中间加一个空格连在一起输出,查找出列名为my$name的sql语句select e.last_name || ' ' || e.first_name as my$name from s_emp e;select e.last_name || 阅读全文
posted @ 2022-02-16 22:42 三天乐趣 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 扩充:查找S_EMP表中员工userid为**的入职时间**的信息 select * from s_emp;select userid ||'的入职时间为'|| start_date from S_EMP;select userid ||'的入职时间为'|| to_char(e.start_date 阅读全文
posted @ 2022-02-16 22:35 三天乐趣 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1、查询“c001”课程比“c002”课程成绩高的所有学生的学号;--方法一:select m.* from (select * from sc a where a.cno='c001') m,--分组课程(select * from sc b where b.cno='c002') nwhere 阅读全文
posted @ 2022-02-16 22:35 三天乐趣 阅读(981) 评论(0) 推荐(0) 编辑
摘要: create table preson( --创建preson表id number(18),name varchar2(100),sex varchar2(10),age number(3))select * from preson; create table person_1( --创建perso 阅读全文
posted @ 2022-02-16 22:35 三天乐趣 阅读(47) 评论(0) 推荐(0) 编辑