recover data that was delete
Suppose the table name is: Table_delete
View System Current time
--Get the system current timeSelect To_char (sysdate, ' Yyyy-mm-dd hh24:mi:ss ') from dual;
View the data in this table at a
1. Name of person who obtains the highest salary in each department
First step: Get the highest salary in each department
Select Max (SAL) from the EMP group by DEPTNO;
The second step: according to the results of the first step and the employee
What is the difference between SYS and system accounts? has been ignorant, just take it for granted that the size of the permission is not the same.
However, they are all administrators.
Now, I know there's a difference:
' SYS ' can only be logged
Difference between left Outer join and Outer Association (+) in "original" Oracle 2008-03-23 16:22:37
url:http://space.itpub.net/?uid-6517-action-viewspace-itemid-216974
difference between on and where in Oracle's left join 2009-09-28
Error 2304 when importing DMP file into local database using IMP statement
IMP-00017: The following statement failed due to ORACLE error 2304:
CREATE TYPE "T_varray" TIMESTAMP ' 2015-03-09:12:18:54 '
OID ' 0da828a87913400f93b12ebdc75afcf5 '
is
The previous period was a select last_number-1 from user_sequences where sequence_name= ' sequence name '. This method is a hidden problem. Error values may occur when there is a large number of concurrent access inserts. A new method was found
1. Why Use synonyms:
Synonyms, as the name implies is two words, the same meaning, can replace each other. So what's its function?
A one of the most obvious purposes is to simplify SQL. If a database object's name is too long, you can create a
Directory===============================================1. The arrangement with null value2.top/bottom N Query3.first/last ranking Query4. Query by LevelOne, with a null value of the arrangement:In the previous article on Oracle development topics:
Foreign key indexing is common sense and must be kept in mind. I did not want to write this simple case, but encountered several consecutive foreign keys without indexing caused performance problems, so write it.
A brother asked me to delete from
The following should be used by everyone.
Sql> SELECT SID from v$mystat WHERE rownum = 1;
Sid———-19949
The following is simpler, but can only be used in Oracle 10g and above.
sql> SELECT USERENV (' SID ') from DUAL;
USERENV (' SID ')————–19949
Part 1
1. Create Job
What job is it? Simply put, the plan (schedule) plus the task description. In addition, there are some necessary parameters.The "Tasks" mentioned here can be stored procedures within a database, anonymous pl/sql blocks, or
equality in Oracle is =, inequality is!= and <>
1. The use of 1<>1:
For situations where the structure does not take data, for example:
CREATE TABLE Table_temp tablespace tbs_temp as
SELECT * from Table_ori where 1<>1
Build a table
First, the establishment of service name1, select "Net8 Configuration Assistant", select "Local Network Service name configuration."2, choose "Add".3. Select Oracle 8i database or service.4, enter the service name. This is a customized database
1, Long data type is stored in variable-length strings, the maximum length limit is 2GB.
2, for more than a certain length of text, the basic only long type to store, the data dictionary many objects are defined in a long to store.
1, Long data
-----------Case one: Create table spaces and users
/* 1th step: Create temporary table space/*Create temporary tablespace ivms86x0_temp----test successfully. Note: The table space name can not be repeated, even if the storage location is
4.3 single-line character function
Common Single-line character functions include the following:
█lower
█upper
█initcap
█concat
█substr
█length
█instr
█trin
█replac
Below, we introduce them separately by example.
LOWER(column name | expression):
In the Oracle database, the body that actually executes the SQL statement is the server process (the server process), which is the client's shadow process, acting as a discretionary proxy and executing the client's request.The server process
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service