After oracle is installed, three users are generated by default, which are:
SysUser: Super Administrator with the highest permissions. Its role isDBAThe password is:Change_on_install
SystemUser: it is a system administrator and has high
To_date format
Day:Dd number 12Dy abbreviated FriDay spelled out FridayDdspth spelled out, ordinal twelfth
Month:
MM number 03
Mon abbreviated MAR
Month spelled out March
Year:
YY two digits 98
Yyyy four digits 1998
The time range in
Function Description: Cut the input string with the specified separator and return a one-dimensional array. Each array element is a substring.
Source code:
Create or replace type ty_str_split is table of varchar2 (4000 );
Create or replace
1.Use% Type In many cases,PL/SQLVariables can be used to store data in database tables. In this case, the variable should have the same type as the table column. For example,StudentsTableFirst_nameThe column type isVarchar2 (20 ),We can declare a
1. Copy the table structure and data:
Create Table table_name_new as select * From table_name_old
2. copy only the table structure:
Create Table table_name_new as select * From table_name_old where 1 = 2;
3. Copy table data only:
In the recent project, a group ranking problem occurs as follows:
The database has the following table:Depart a B C group
detachment 1 34.4 3.3 1 detachment 1 33.3 32.2 1 detachment 3 2 3.3 22.2 1 detachment 4 3.3 4.4 33.3 1 high-tech Zone
Example of Oracle Database Connection, addition, deletion, modification, and query operations Code 1st FloorMyconn = new system. Data. oledb. oledbconnection ("provider = msdaora.1; Data Source = oracle9; user id = test; Password = test ;")2) Define
I. Length of geometric objects
Format:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Sdo_geom.sdo_length (Geom
In
MDSYS. sdo_geometry, dim
In
MDSYS. sdo_dim_array
[
, Unit in
What is a cursor:
A cursor is a swimming cursor.
Description in the database language: the cursor is the entity mapped to the position of a row of data in the result set. With the cursor, users can access any row of data in the result set, after
From Oracle database products, from oracle2.0 (without 1.0) to oracle7.3.4, it is only a simple version number. However, from oracle8, database product feature identifiers such as Oracle8i and 9i appear, internet stands for "I", indicating that this
Today, a colleague asked me how to dynamically call the stored procedure in Oracle PL/SQL. I think there should be no problem. I just tried OK, mainly using the execute immediate syntax, note that the in and out parameters are specified in using.
Test environment: oracle9i, PL/SQL developer 8.0, PL/SQL developer 7.0
After a colleague created Oracle jobs through PL/SQL developer 8.0, he could not see the jobs folder, but under the dbms_jobs folder. After creating Oracle jobs through PL/SQL
Oracle job doubts about calling the stored procedure. Recently, I set up a job in the Oracle database to automatically generate a batch of data at a specified time point. Through the Stored Procedure p_create_data (V_date in date,V_flag out number.
Recently, an array is used in a process to store a series of values.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 Declare Type ln_mon_plan_value_varray Is Varray ( 20 ) Of
1. SQL Server 2000 is a method that uses reverse and forward order first.
Select top 3 * from (select Top 9 * From mvc_book order by bid) as s order by S. Bid DESC [Article 6, 5, 4]
Select * from (select top 3 * from (select top 6 * From
E: \ exp help = "Y"
By entering the exp command and user name/password, you canCommand after user/password:
Example: EXP Scott/Tiger
Alternatively, you can control the running mode of "Export" by entering the exp command with various parameters.
Oracle cursor usage
The following example describes the complete declaration, opening, and extracting of the closure operation and the passing of the cursor parameters.
Declare
Deptrec Dept
%
Rowtype;Dept_name Dept. dname
@ Type
1Because the eight reports of the crosstab chart are written inSQL.SQLStatement has300The view cannot be defined because there are too many rows. Because a parameter must be passed, the stored procedure is used.
First, define the package, and
After completing the training, Master Zhou immediately ran to another brother organization to solve the problem. I really admire Master Zhou.
Brother organizations have encountered two difficult problems. A primary key repetition error is reported
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.