When the data in the table is not required, delete the data and release the occupied space. To delete the data in the table, use the delete statement or the truncate statement.
I. Delete statements
(1) conditional Deletion
Syntax format:
Now, if a permission number is provided and you want to retrieve the user set with the permission, you need to match the given permission number among multiple permission numbers separated by commas. If you use like, one is less efficient, and the
After installing oracle11g, I want to enable the built-in SQL plus for learning, and then follow the prompts to use the Sys user to connect to the database. If I lose the SQL Plus, an error is prompted several times:
Error: the account is locked
1. How to view the database Character Set
[A] database server Character Set select * From nls_database_parameters, which is derived from props $ and indicates the character set of the database.
Client Character Set environment select * From
First, write a batch processing file and give an example.
CopyCodeThe Code is as follows: Set RQ = % Date :~ 0, 10%
Exp system/system's password @ local service name file = D: \ backup \ Bak % RQ % full = Yes log = D: \ backup \ Bak % RQ % buffer =
Let's sum up and answer these two common questions that most netizens are concerned about.
Differences between in and exist
From the perspective of SQL programming, in is intuitive, and exists is not intuitive. There is one more select,In can be
Software environment:
1. Operating System: Windows 2000 Server
2. Data Base: Oracle 8i R2 (8.1.7) for NT Enterprise Edition
3. installation path: C: Oracle
Implementation Method:
1,
D:> set nls_lang = american_america.usacii7
Or
D:> set nls_lang =
Add a user (a schema with the same name as the user is automatically generated as the user is created)
Create user "tester" Profile "default" identified by "tester" default tablespace "testdata" temporary tablespace "testtemp" account unlock;
(To
The idea of Oracle paging stored procedures is the same as that of SQL Server, but I have made some changes here because of the differences in Oracle syntax and rules, the Oracle paging Stored Procedure looks a little different. Smile!
Cursor
Today a friend asked the following case, ORA-01114, ORA-27067 and OSD-04026 errors at the same time:
* ** Action name :() 09:31:00. 762* ** Module name :( JDBC Thin Client) 09:31:00. 762* ** Service name :( SYS $ USERS) 09:31:00. 762* ** Session id:
How does one return table variables in Oracle functions?
It's too late, so I won't talk about it if I have too much theoretical knowledge. Let's talk about implementation in a simple way !..
1. Create a table object type.
To return table objects in
The following examples illustrate how to use regular expressions to solve common problems in work.
1.
REGEXP_SUBSTR
The REGEXP_SUBSTR function uses a regular expression to specify the start and end points of the returned string, and returns the same
I. Operating Environment Construction
System: 64-bit Windows 7 flagship EditionPHP environment: wampserver2.2e-php5.4.3-httpd2.2.22-mysql5.5.24 32-bit: Http://www.wampserver.com/en/
ThinkPHP: 3.0 official version: Http://thinkphp.cn/down.html
Oracle:
1. Stop various applications at the application layer.
2. Stop the listening process of oralce:
$ Lsnrctl stop
3. Back up the control file under an exclusive system user:
SQL> alter database backup controlfile to trace;
4. Under an exclusive system
1. What is an execution plan)
Execution Plan: the execution process or access path of a query statement in ORACLE.
Ii. How to view the execution plan
1: Press F5 under PL/SQL to view the execution plan. Third-party tools such as toad.
Many people
Total combination set:Group by with rollup/cube
Grouping sets
Subqueries are executed in the following ways: Standard subqueries and associated subqueries
Standard subquery: Nested subquery
Scalar Value Query
Case with then
Use exits to query
Select
1. multiline Functions, also known as Group Functions and Aggregate Functions
1. Types of Group FunctionsAvg, count, max, min, stddev, sum, varianceAvg averageSelect avg (nvl (column 1, 0) from table 1Count calculates the number of rowsAggregate
I. Creation and use of stored procedures
1. Create a package and create a stored procedure in the program
Create or replacePACKAGE NCS_ICP_TJ/* Lfx@ncs-cyber.com.cn *//* TODO enter the package Declaration (type, Exception error, method, etc.) here )
Oracle cursors include display cursors and implicit cursors.
Explicit Cursor: The Cursor defined in the PL/SQL program for query is called a display Cursor.
Implicit Cursor: A Cursor automatically allocated by the Oracle system when UPDATE/DELETE
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