SQL oracle的一些问题求解答

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQL oracle的一些问题求解答相关的知识,希望对你有一定的参考价值。

求大佬 解答一下 这些语句该怎么打
有没有人来看一下的哦

参考技术A 1.
select * from sys_error where error_time < to_date('20081001', 'YYYYMMDD');
2.
select * from sys_error where error_time > to_date('20081015', 'YYYYMMDD') and emp_id = 1;
3.
select * from sys_log where execute_time > to_date('20081001', 'YYYYMMDD') and info like '%系统%' order by execute_time asc;
4.
select * from sys_log where type in ('W', 'B') and emp_id = 9222;
5.
select * from sys_log where emp_id = 1 and info like '登录%' order by execute_time asc;
6.
select * from sys_log where emp_id in (1, 438, 488, 442) order by execute_time asc, emp_id asc;
7.
insert into sys_log (execute_time, emp_id, type, node, info) values (sysdate, 0, 'S', '*', 'insert test');
8.
update sys_error set error_event = '未知' where error_event = 'Unknow';
9.
delete from sys_log where execute_time < to_date('20080801', 'YYYYMMDD');
10.
create table temp(ID NUMBER(2), CODE VARCHAR2(3), NAME VARCHAR2(12));
11.
create constraint pk_temp primary key(ID);
12.
create index idx_temp_code on temp (CODE);
13.
alter table temp modify (name varchar2(20));
14.
alter table temp add (inputcode varchar(6));
15.
delete from temp;
16.
update sys_parameter_system set parameter_value = '2001' where parameter_type_code = 'COLLECT' and parameter_name = 'BARCODE_OUT';
17.
update t_assay_specimen_trans set return_count = return_count + 1 where return_count >= 10;
18.
select count(*) from collect_specimen_info;
19.
select patient_code, count(patient_code) from collect_specimen_info group by patient_code having count(patient_code) > 3;
20.
select specimen_no, instrument_id, barcode, patient_code, patient_name from collect_specimen_info, assay_specimen_info where collect_specimen_info.barcode = assay_specimen_info.barcode and patient_code = '180006';
参考技术B 20道题目,很基础的题目不愿意做吗?还是自己动手做一下比较好 参考技术C 义二义川义父义义川

如何学习Oracle

 

如何学习Oracle?分清几个概念是关键
 
   经常有一些Oracle的初学者问到以下几个问题,这里集中解答一下,希望对大家有帮助。
 
  1、如果有一定的数据库基础,知道SQL是怎么回事,即使写不出来简单的SQL,但可以看动它们,你就可以跳到2。否则请先看一下数据库基础和SQL语言,不需要很深,更不需要去记忆那些复杂的SQL命令,这些可以留在以后边应用边学习、记忆。
 
  2、要想学好ORACLE,首先要学习ORACLE的体系结构,现在你不需要深入理解它们,但要分清几个关键的概念:
 
  instance & database, memory structure , process & those files ,such as data file, control file, init parameter file etc.以及database , tablespace , data file和tablespace, segmnet, extent & block它们之间的关系。
 
  当然还要分清undo tablespace & redo log file等,对于很多初学者来说,能够对这些概念有个较为清晰的认识并不是一件容易的事,而这些并非Oracle的全部。
 
  3、有关ORACLE的一些基本概念,下面要学习的是一些简单的的实际操作,就是如何去管理ORACLE数据库,当然不是管理全部的ORACLE。在此过程中你将对SQL和ORACLE体系结构有个更深入的了解。
 
  4、到了这一步你基本上算是初步掌握了ORACLE,下面将要根据你的方向来具体学习其它的ORACLE知识了。如果你是开发人员,则需要更多地去学习PL/SQL以及DEVELOPER,而这将是一门新的课程。如果你是一名DBA,请继续。
 
  5、现在你可以根据自己的实际情况,进行有选择的学习,也就是说下面的内容没有特别顺序要求。可以选择深入学习ORACLE的管理、备份与恢复、性能调整、网络等。当然在学习这些知识的过程中,如果有实际的工作更好,这样你可以在实际中成长,学会TROUBLE SHOOTING。
 
  6、当然在学习的过程中,你可以在网站或论坛中与他人进行交流,可以看别人的一些经验文章,也可以自己写一些心得体会。技术进步的本身就是经验的积累和提炼过程。


3------------------------- 

 




以上是关于SQL oracle的一些问题求解答的主要内容,如果未能解决你的问题,请参考以下文章

Oracle中的SQL语句的题目,求解答啊

sql server 与 IIS 中权限设置的问题。高分100分!求高手解答!

为啥mssql的OPENQUERY取oracle某表时只返回了一行数据,而在pl/sql中可以查到表中有两行数据,求解答?

MySQL视图查询超慢,求解答

MySQL视图查询超慢,求解答

关于oracle触发器的一个问题,求解答