SELECT * from Pdpla_approve_proj;
Create or Replace procedure Proj_xml (st_id varchar2)
Is
Pro_rows pdpla_approve_proj%rowtype;--Row cursor
Tempsql varchar2 (MB): = ' select * from pdpla_approve_proj where st_id= ' | | st_id| | '; --
Type cur
Use of case, simple case functionA simple case expression that uses an expression to determine the return value.
Grammar:
Case Search_expression
When Expression1 THEN RESULT1
When Expression2 THEN result2
...
When Expressionn THEN Resultn
Oracle packages are divided into package specification and package body
First: Create a package specification
Create or Replace package P_pagewithgroup is
--Author: Xiaowei
--CREATED:2014/3/18
--Purpose: grouped paging process
TYPE Type_cur is
1. Usage rules for group functions:
The group functions in MySQL are free to use in SELECT statements, but if there are group functions in the query in Oracle,
The other column names must be processed by the group function, or columns in the GROUP
The steps are simple: Guan-> copy to target machine-> boot to mount State rename->open database
Login to the source database host
Create map directory 192.168.1.2oradata map to Z: Disk
Check to see if the file is allowed to be written after
The Oracle database used in recent projects is built with multiple tablespaces on the server for use by different systems, while two systems are in use, a project being developed at the time of the test run, the connection pool is full, not
According to ORACLE10G's characteristics, when I execute the drop table or delete all, Oracle places the deleted table or data record in the database Recycle Bin (db RecycleBin). So we can use the Flashback Table command to recover the deleted table
Introduction: Oracle In addition to the graphical way in the Oracle editor to import the export of arts and Sciences file data, you can also import the export database in a command-line manner, and its syntax is as follows:
IMP [username[/password[@
Oracle obtains tablespace file information through query dba_segments table, including table space name, size, etc.?
1
Select Tablespace_name,sum (max_size), sum (bytes) from dba_segments Group by Tablespace_name;
The
The Dbms_random package in Oracle encapsulates a number of functions that generate random numbers and random strings, with the following two commonly used:
Dbms_random. Value function
This function is used to produce a random number, and there are
/* Execute an INSERT statement and pass the parameter * *Create or Replace procedure P_test2 (i in number) asBeginINSERT into t values (I, ' X ' | | To_char (i));CommitEndaaabbbString Driver = "Oracle.jdbc.driver.OracleDriver";String strURL =
oracle| Performance | optimization
8. Use the Decode function to reduce processing time
Use the Decode function to avoid repeatedly scanning the same record or repeating the same table.
For example:
SELECT COUNT (*), SUM (SAL)
From
oracle| Backup | notes | recovery
User-defined database backups
Type of Backup
Backup methods
Example
Data files
Operating system commands or tools
C:\COPY Datafile1.ora Datafile.bak
Archive Redo log files
Operating system commands or tools
Client|oracle
Client-side approach to installing Oracle
Cantonese Zhongshan Thank you macro
2001/04/03
Objective:
I've seen a lot of people on the Internet asking the client to connect a PB program to an Oracle library by not installing
oracle| temporary table
We have recently taken into account the fact that our database-side write stored procedures are used in temporary tables because we
It is not clear how the database end is handled, and how SQL Server is handled
The same,
oracle| Page | data | Show ONE, introduction
Paging is required to access a table with a large amount of data through a browser. ASP's paging display of database records can be achieved through the ADO object set Recordset object. The recordset
oracle| Upload | data | Database in the database under the HR scheme to establish a table named Testfileupload, contains 3 columns: PRIMARY key pkid, filename filename, file files (BLOB type).
void UploadFile ()
{
FileStream OBJFS = new
Steps to build a physical standby database on the same machine, the Linux environment Oracle 11.2.0.1
Main Library: ORCL
Prepare library: Stby
1 Check if the listening is started
2 Configuring the initialization parameter file for the primary
SQL execution efficiency has always been a concern, how should it be improved? What better way, below share with you under the more good suggestions, interested friends can refer to, I hope to help you
Copy code code as follows:If you have multiple
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