CREATE OR REPLACE PROCEDURE PROC6338196642095312503719 (Enter the news subject VARCHAR2, enter the news content Varchar2, enter the publication time Varchar2, enter the current page number, Enter the number of rows per page, output the current page
This brings a lot of benefits, but it also requires learning some new concepts, commands, usage, and management tasks. So before you put your production system in, look at what it solves, what it manages, and how it evaluates it.
Why did you create
Inner joins (inner join).
Outer joins:
Fully connected (full join), left join (left join), right join.
Cross join (cross join).
An outer join is not the same as an inner join, and the query results returned by an outer join contain not only rows
I. Introduction to the ConceptScript: Scripts are executable files that are written in a certain format using a specific descriptive language, also known as macros or batch files.
two. BackgroundRecently installed Oracle database under Windows,
Copy Code code as follows:
Select A.f_username
From
(
SELECT/*+parallel (gu,4) */distinct Gu.f_username
From T_base_succprouser gu
where Gu.f_expectenddate > (select trunc (sysdate, ' Y ') from DUAL)
and gu.f_lotid=1
and
PHP Program Access to the database, you can use stored procedures, some people think that the use of stored procedures to facilitate maintenanceHowever, in this case, I think that using stored procedures means that DBAs and developers have to work
Indexing is a required option for a database, but for today's large databases, indexes can greatly improve the performance of the database, so that it becomes an integral part of the database.
Index Categories:
Logical classification
Single column
Today, I met a software requirement to install the Oracle client side, so I considered a compact version from the http://www.oracle.com/technology/software/tech/oci/instantclient/ index.html downloads Instantclient-basic-win32-10.2.0.4.zip, which
Produces a primary key value using a sequence.
A sequence (Sequence) is a database object that can be used by more than one user to produce a series of unique numbers. Sequence definitions are stored in the data dictionary, simplifying program
If you accidentally overwrite the previous stored procedure, then flash back and the likelihood of a long, long flashback is smaller. The principle is very simple, the definition of stored procedures is a data dictionary, modify the data dictionary
Copy Code code as follows:
DECLARE
V_table Tabs.table_name%type;
V_sql VARCHAR2 (888);
V_Q number;
CURSOR C1 is
SELECT table_name TN from tabs;
TYPE c is REF CURSOR;
C2 C;
BEGIN
Dbms_output. Put_Line (' Table name of empty datasheet: ')
Copy Code code as follows:
CREATE OR REPLACE FUNCTION fn_no_make (V_prefix VARCHAR2,
V_table_name VARCHAR2,
V_number_col VARCHAR2)
/*
* V_prefix: Code prefix two bits
* V_table_name: Table name encoded
* V_number_col: Name of the column
1, Oracle users add
Copy Code code as follows:
Create user Lisi identified by Lisi;
Note: Create user is creating database users, followed by user name, identified by is set user password
2, the "connection" database
When a section is used more than once in a query, a public temporary table can be created with an Oracle with statement. Because the subquery avoids repeated parsing in the memory temp table, the execution efficiency improves a lot. Temporary tables
The following is an operation to connect to a database using a connection pool under a Tomcat server
One: Modify the Web.xml file:
Copy Code code as follows:
project
index.html
index.htm
index.jsp
default.html
default.htm
Week using IW method, if the 52nd Zhou Bie of the year between December 31 and the year, and more than or equal to 4 days, then the 53rd week of the year, otherwise the remaining these days are classified as the 1th week of the next year
1.Oracle Server-side Character set query
Copy Code code as follows:
Select Userenv (' language ') from dual;
Server Character Set modification :
To start the database in restricted mode to do character set changes:
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