When you write a stored procedure, you use the following SQL statement
Copy Code code as follows:
SELECT MAX (re_date) into v_re_date
From t_recording
WHERE ID = ' 100010010102 '
Logically, the result of a query based on this
Copy code code as follows:
--Created on 2010/11/04 by Wangnan
Declare
--local variables her e
I integer;
TYPE t_table is Table of VARCHAR2 (a) INDEX by VARCHAR2 (2);
V_t_table t_table; The
TYPE t_pg3 is TABLE
One, close the database
[Oracle@rhel5] $sqlplus/as sysdba
Sql>shutdown immediate;
Second, close the monitoring
[Oracle@rhel5] $lsnrctl stop
Iii. deletion of Oracle_base
I'm switching to root here.
[Root@rhel5] #rm-rf/s01
Iii. Clearance of
In this case, if there is duplicate data in the temporary table, whether the primary key field is BUSINESSID, or if a whole row has duplicates, it will report a violation of the unique PRIMARY KEY constraint error.
Method: Group BY XX has count (*)
SQL1:
Copy Code code as follows:
--1, viewing the name and size of the table space
SELECT T.tablespace_name, round (SUM (Bytes/1024 * 1024)), 0 ts_size
From Dba_tablespaces T, Dba_data_files D
WHERE T.tablespace_name =
Demand:
Currently contact with the BI system, due to the business system transactions have a lot of, often some executives need to see all the records, but do not want to scroll, want to see all, and then think of the form of string concatenation.
1. Optimize the application and business logic, this is the most important.
2. Database design phase paradigm and the flexible application of the inverse paradigm. In general, for frequently accessed but infrequently modified data, internal design
SQL SELECT statement Complete order of execution:1. The FROM clause assembles data from different data sources;
2. The WHERE clause filters the record rows based on the specified criteria;
3. The GROUP BY clause divides the data into multiple
What should you write if you need to use SQL recursive statements in an Oracle database? Here's an example of a SQL recursive statement used in Oracle for your reference.
Example:
Copy Code code as follows:
PID ID
A b
A C
A E
b B1
b
This example describes the core steps of PHP connecting to Oracle databases. Share to everyone for your reference, specific as follows:
1, modify php.ini file, open Extension=php_oci8.dll extension.
2, copy the PHP installation
1. Install Oracle Client
The prerequisite for connecting to Oracle is to install Oracle Client on the SQL Server server. Oracle client download addresses are as follows:
Copy Code code as follows:
Basic information for user users and 3 columns in the UserInfo table
Package landing judgment;
public class User {
private String name;Private String LoginName;Private String LOGINPSW;Public String GetName ()
This article is an example of how Python connects Oracle databases and shares them for your reference. The specific steps are as follows:
First, download the driver: (cx_oracle)
http://www.python.net/crew/atuining/cx_Oracle/But pay attention to
The string ID to be deleted is
Copy Code code as follows:
String sdsales_idstring = 1,2,3,4,5,6,7
Turn into array
Array array = Sdsales_idstring.split (new string[] {","}, Stringsplitoptions.removeemptyentries). Toarray ();
Define a
Things to be aware of when using EXPDP and IMPDP:Exp and IMP are client tool programs that can be used either on the client or on the server side.EXPDP and IMPDP are server-side utilities that can only be used on the Oracle server and not on the
(i) The concept of an indexAn index is a database object related to a table or cluster, which provides a fast access path for querying data, reduces disk I/O, and improves retrieval efficiency.The index is composed of index values and rowid two
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