Because the hand is cheap, the production data was deleted by me.
With the DELETE statement, and it's quickly returned to the commit.
The following two statements:
The code is as follows
Copy Code
ALTER TABLE
See a friend today. A batch command backup table when doing a database backup, what a convenient thing to do in Oracle 10g Oh, let's see.
Description
1. I used the Oracle 10g database, which was derived from the EMP and Dept tables under Scott's
There is such a view, probably as follows:
This view can only be compiled successfully in a 10g,11g environment and cannot be compiled in 9i environments.
The code is as follows
Copy Code
Select a.*,b.*From (select
exists and in efficiency in Oracle and its usage
Replace not in with not exists
select * from Tsp_product p where not exists (select "From Tsp_orderitem I where p.id=i.product_id)
SELECT * FROM Tsp_product p where ID isn't in (select
First, the query table basic information
Select
Utc.column_name,utc.data_type,utc.data_length,utc.data_precision, Utc.data_scale,utc.nullable,utc.data_default, Ucc.comments
From
User_tab_columns utc,user_col_comments UCC
where
Utc.table_name =
Because of the project needs, in a Query page query field Support multi-keyword query, support space-delimited query conditions, it is implemented as follows:The principle used is: thefunction Regexp_likethat supports regular expressions in Oracle,'
Common Database object tables: A basic collection of data stores, composed of rows and columns: Logically related data collection sequences extracted from a table: Provides a regular numerical index: improve efficiency of queries synonyms: Aliases
a connection is not synonymous with a session and can be established on a connection 0 One or more sessions. Each session is separate and independent, even if they share the same database physical connection. Commits in one session do not affect any
1. Install Oracle Oracle software is free and can be downloaded to the website to download the appropriate installation package. However, if commercial use is required to purchase license. Official online for various platforms, both 32-bit and
When you get dizzy and execute a commit, suddenly it means you're wrong, which means you and I have the same problem.Instantly feel the cold head sweating, that means you feel right. Less nonsense, here's my approach:The example below is an example
ORA-01555 snapshot is too old, is a common error in the database, such as when our transaction needs to use Undo to build a CR block,And at this time the corresponding undo no longer exists, this time will be reported ORA-01555 error.Environment is
1.Oracle Data TypesThe Number data volume type can store integer, negative, 0, fixed-point, and precision 38-bit floating-point types. dadte Oracle database uses its own format to store the date (7 bytes fixed length) column: Century, year,
SYSDBA and Sysoper are administrative permissions that are performed by the user to perform advanced administrative operations such as creating an on/off backup/restore database.SYSDBA system permissions are for database administrators who want to
1. Aggregation functionCount (field) //number of non-empty lines max (field) //Get maximum sum (field) //Sum avg (field)/ / average min (field) / min value2. Conversion functionTo_date ()
1. First look at the information on the foreign website how to say
nomount , Haven database instance has been started (processes and memory structures had been allocated, but contro L file is not yet accessed). The DB instance has started (
Ipcs-provide Information on IPC facilitiesDESCRIPTIONIPCS provides information on the IPC facilities for which, the calling process has read access.The-i option allows a specific resource ID to be specified. Only information on the this ID would be
. #!/bin/bashset-xsu-oracle >>eonlsnrctl Startsqlplus/nolog >>eofconn/as SysdbastartupexitEOFexitEONWe often use the [Plain]View Plaincopy
Sqlplus EMSSXJK/EMSSXJK
Select COUNT (*) from Sncn_yxyj where create_date like sysdate;
Eof
The SQL
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