I wrote an article yesterday, but it cannot solve the problem of connecting to Oracle using WINXP SP2 + php5.1.4 + apache2.2.2.
Last night, I saw from the official PHP website that I had upgraded to PhP 5.2 and immediately went down. After going
Create View
Create or replace view t
Select t1.t11 F1, t1.t12 F2, t2.t22 F3From T1, T2Where t1.t11 = t2.t11;
View update
Create or replace trigger trg_insupddel_tInstead of insert or update or delete
On T
For each row
Declare
Begin
If
Although the English system is installed, the SQL developer interface is still a ceramic version. If you want to change it to English, find the solution below.
Go to \ product \ 11.2.0 \ dbhome_1 \ sqldeveloper \ bin in the Oracle installation
1. Export the database test completely, and the username System Password Manager is exported to D: \ daochu. dmp.
Exp system/manager @ test file = D: \ daochu. dmp full = y
2. Export the tables of system users and SYS users in the database
First, check whether the current Oracle version supports the partition function.
SQL> select value from V $ option where upper (parameter) = 'partitioning ';Value----------------------------------------------------------------True -- [note that the
It is much more difficult to perform associated updates in Oracle than in SQL Server,Join two table updates, so this is not necessary. It is a bit depressing...
Update
T_gd_warebase
Set
Wareqty
=
(
Select
Sum
(B. qtyky)
From
-- Loop/is equivalent to do while
Declare
S
Number
:
=
0
;I
Number
:
=
1
;
Begin
Loop
Exit
When
I
10
;S:
=
S
+
I;I:
=
I
+
1
;
End
Loop;Dbms_output.put_line (s );
End
;
-While
Query
The SELECT statement is used to query data from the database. When the SELECT statement is used in PL/SQL, it must be used with the into clause. The return value of the query is assigned to the variable in the into clause, variable
1,
Select 'drop table' | table_name | ';'From all_tablesWhere owner = 'username to be deleted (uppercase )';
2,
Delete all tables
Take user test as an Example
For example:
DeclareCursor cur1 is select table_name from dba_tables where owner = 'test ';
Metadata Overview
The most common definition of metadata (metadata) is "structured data about data", or simply "information about data ", legends, library directory cards, and business cards in daily life can be viewed as metadata. In the relational
Does Oracle use an index? (How to monitor)
Does Oracle use my index or not?
One can use the index monitoring feature to check if indexes are used by an application or not. when the monitoring usage property is set for an index, one can query the V
Oracle import utility allows you to extract data from a database and write the data to an operating system file. The basic format used by IMP: Imp [username [/password [@ Service]. The following describes common usage of imp.
1. Get help
imp
1. Benefits of using procedures or functions
1) ensure data security:For example, if a data table can be updated in an existing process, the Administrator does not have to grant the user the permission to directly access the data table, but grant
The following describes how to use common data dictionaries for oracle users by category.
I. Users
View the default tablespace of the current userSQL> select username, default_tablespace from user_users;
View the role of the current userSQL>
When writing a loop control structure, you can use three types of loop statements: Basic loop, while loop, and for loop. The following describes how to use these three types of loop statements.
1. Basic cycle
Loop
Statement1;
......
Exit [When
Oracle provides wrap tools to encrypt your package.However, the encrypted code cannot be decrypted. You need to keep your source code safe.
The following is an example:
1. Source Code
Create or replace function get_rowid(L_rowid in varchar2)Return
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