随笔分类 -  前端学习-oracle

前端学习=oracle
摘要:1创建了一个数据库geyao,但是只能显示docare 2plsql版本太低,或者直接修改 C:\app\MDSD\product\11.2.0\dbhome_2\NETWORK\ADMIN 添加配置文件 出现歌谣 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(31) 评论(0) 推荐(0) 编辑
摘要:24. ORA-04031错误的解决办法 应用程序报错“ORA-04031错误” 原因分析: SGA 分配不足,32bit 最大的分配1.7G 解决方法: 增大sga 或操作系统和数据库版本升级到64bit 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(120) 评论(0) 推荐(0) 编辑
摘要:/*************************************************************************************************/ 40. 谁的工资比 Abel 高? 1). 写两条 SQL 语句. SELECT salary FR 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(28) 评论(0) 推荐(0) 编辑
摘要:1. 查询和Zlotkey相同部门的员工姓名和雇用日期 a) select last_name,hire_date b) from employees c) where department_id = ( d) select department_id e) from employees f) wh 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(74) 评论(0) 推荐(0) 编辑
摘要:51. 利用子查询创建表 myemp, 该表中包含 employees 表的 employee_id(id), last_name(name), salary(sal), email 字段 1). 创建表的同时复制 employees 对应的记录 create table myemp as sele 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(49) 评论(0) 推荐(0) 编辑
摘要:--创建表 create table emp3 as select employee_id,last_name,hire_date,salary from employees --查询表 select * from emp3 --插入表 insert into emp3 values(1001,'A 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(13) 评论(0) 推荐(0) 编辑
摘要:55. 更改 108 员工的信息: 使其工资变为所在部门中的最高工资, job 变为公司中平均工资最低的 job 1). 搭建骨架 update employees set salary = ( ), job_id = ( ) where employee_id = 108; 2). 所在部门中的最 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(15) 评论(0) 推荐(0) 编辑
摘要:--创建表 create table emp4( id number(10) constraint emp2_id_nn not null, name varchar2(20) not null, salaty number(10,2) ) --查询表 select *from emp4 --插入 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(23) 评论(0) 推荐(0) 编辑
摘要:--修改约束 alter table emp5 modify (salary number(10,2) not null) --修改约束 alter table emp5 modify (salary number(10,2) not null) --删除约束 alter table emp5 dr 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(16) 评论(0) 推荐(0) 编辑
摘要:62. 查询员工表中 salary 前 10 的员工信息. select last_name, salary from (select last_name, salary from employees order by salary desc) where rownum <= 10 说明: rown 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(59) 评论(0) 推荐(0) 编辑
摘要:--创建序列 create sequence empseq increment by 10 每次增长10 start with 10--从10开始 maxvalue 100--提供最大值 cycle --循环 nocache --不需要缓存登录 --创建表 create table emp11 as 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(19) 评论(0) 推荐(0) 编辑
摘要:--创建序列 create sequence empseq increment by 10 每次增长10 start with 10--从10开始 maxvalue 100--提供最大值 cycle --循环 nocache --不需要缓存登录 运行结果 --查看 查看 select empseq. 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(21) 评论(0) 推荐(0) 编辑
摘要:1. 创建序列dept_id_seq,开始值为200,每次增长10,最大值为10000 a) create sequence dept_id_seq b) start with 200 c) increment by 10 d) maxvalue 10000 2. 使用序列向表dept中插入数据 a 阅读全文
posted @ 2022-08-13 21:30 前端导师歌谣 阅读(14) 评论(0) 推荐(0) 编辑
摘要:提示:在导入sql和dmp文件之前,先建立用户,指明表空间。其中要注意用户名和表空间最好跟sql文件中的一样。 方法一:.sql文件的导出与导入 导出步骤 使用PL/SQL Developer登录你需要备份的数据库; 选择工具->导出用户对象; 在对象列表中选择需要备份的对象,再选择一个sql类型的 阅读全文
posted @ 2022-08-13 21:29 前端导师歌谣 阅读(1513) 评论(0) 推荐(0) 编辑
摘要:查看表有哪些列 desc employees; 运行结果 基本sql语句 查询全部列 查询特定列 注意事项 算数运算符 阅读全文
posted @ 2022-08-13 21:29 前端导师歌谣 阅读(23) 评论(0) 推荐(0) 编辑
摘要:SQL*PLUS命令可以控制数据库吗? 否! 下面的语句是否可以执行成功 可以 select last_name , job_id , salary as sal from employees; 下面的语句是否可以执行成功 可以 select * from employees; 找出下面语句中的错误 阅读全文
posted @ 2022-08-13 21:29 前端导师歌谣 阅读(29) 评论(0) 推荐(0) 编辑
摘要:--查询对应的列 大于5000 select employee_id,last_name,salary from employees where salary>5000 运行结果 --查询对应的日期 select last_name,hire_date from employees where hi 阅读全文
posted @ 2022-08-13 21:29 前端导师歌谣 阅读(39) 评论(0) 推荐(0) 编辑
摘要:7. WHERE 子句紧随 FROM 子句 8. 查询 last_name 为 'King' 的员工信息 错误1: King 没有加上 单引号 select first_name, last_name from employees where last_name = King 错误2: 在单引号中的 阅读全文
posted @ 2022-08-13 21:29 前端导师歌谣 阅读(18) 评论(0) 推荐(0) 编辑
摘要:--全部小写 全部大写 全部首字母大写 select lower('ATGUIGUJAVA'),UPPER('ATGUIGU Java'),initcap('ATGUIGU Java') from dual -- --转换为小写查询 select * from employees where low 阅读全文
posted @ 2022-08-13 21:29 前端导师歌谣 阅读(19) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示