There is a need to divide the performance of the course into four grades for students to play a, B, C, D.drop table course purge;CREATE TABLE Course(ID number,Grade number);Insert into course values (1,50);Insert into course values (2,55);Insert
I. Oracle Common data types (other types are less common)(1) Character type1, char fixed length, maximum 2000 characters. For example: char (10) ' Xiao Ming ' first four words descriptors ' Xiao Ming ' after adding 6 blanks to complete. 2, VARCHAR2 (
1. When you open the form:(1) Pre-form (2) Pre-block (BLOCK level) (3) when-new-form-instance (4) when-new-block-instance (5) when-new-record-instance (6) WHEN-NEW- Item-instance2. When a row of records is completed, the cursor moves to the next
ObjectiveThis chapter is mainly about Oracle's architecture, which is also a strong theory. There are some more theoretical points of knowledge (such as table space AH), temporarily do not write, the next chapter began to enter the operational phase
1. Run the PL/SQL block to establish the stored procedure in Oracle's Sqlplus or other tools--------------------------------------------------------------Paging stored procedures--------------------------------------------------------------Create a
NVL () function in OracleOracle's use of the NVL functionThe total value of a field is obtained by a query, and if the value bit is NULL, a default value is given.Select NVL (SUM (T.DWXHL), 1) from Tb_jhde t where zydm=-1Here the usage of the NVL is
In Oracle, single quotes have two effects:1: String is quoted by single quotation mark2: Escape.The use of single quotation marks is the nearest pairing. While single quotation marks are relatively poorly understood when they act as escape
CREATE OR REPLACE PROCEDURE P_query_cs (P_infotype in VARCHAR2,P_fromareacode in VARCHAR2,P_toareacode in VARCHAR2,P_keytype in number,R_cursor1 out Sys_refcursor,--Result setR_cursor2 out Sys_refcursor--Result set)IsBEGINOPEN R_cursor1 forSELECT *
0 ORDER by Asc/desc default ascendingOrder BY Column name | expression | alias | serial numberPut the space behind: ORDER by Desc nulls last1 grouping function--Automatically filters null valuesCount (*|distinct|clumn) Max min sum avgSelect SUM
Http://hi.baidu.com/rebooo/item/12b500b130022bf263388e69 assumes A is the primary table (which contains a table with a primary key) and B is from the table (that is, the primary key that references A is the foreign key). When a table is deleted, if
Error one: After configuring the source and target databases, create a replication administrator. After you connect the replication administrator, perform the maintain_table process in the Source library:declare v_tables dbms_utility.
64-bit environment, use PL/SQL developer to connect to Oracle:1. Download the 32-bit Oracle instantclient and expand to a directory, such as C:\instantclient-basic-nt-11.2.0.2.0;·2. Copy the system's Tnsnames.ora to the directory;·3. Set up the
SQL code
CREATE TABLE earnings --working Money table
(
Earnmonth VARCHAR2 (6), --Working month
Area VARCHAR2 (a), --working areas
Sno Varchar2 (Ten), --migrant worker number
Sname Varchar2 (a), --the name of the working person
times
In my development of the BS structure program, because of the frequent need to process some large-capacity text data in Oracle, so after repeated testing and finally with ASP successfully solved the large text data under Oracle access problem.
Oracle start with connect by prior usageSyntax: SELECT * FROM table name where Condition 1 start with condition 2 connect by prior current table field = Cascading table field start with and connect by prior statement complete recursive recording,
One, in the configuration file, the Oracle connection string is stored1. Connection string:"Data source=127.0.0.1/test;user id=xxx;password=xxx;provider= ' oraoledb.oracle '"2.provider[providers], there are two kinds: ' oraoledb.oracle ' for Oracle,
1.char is fixed-length, for example, you define a column type of char (20). So even if you insert "ABCDE" 5 bytes, the database will automatically add 15 bytes (possibly a space) to complement the 20 bytes.2.vcharVchar are long. For example, if you
Oracle _ constraints constraintZookeeper
Oracle _ constraints constraint
① What are constraints?1 constraint is mandatory at the table levelThere are five constraints:NOT NULLUNIQUEPRIMARY KEYFOREIGN KEYCHECKNotesIf no constraint name is specified,
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