When using the SQL server syntax to write oracle stored procedures, errors may occur. The other differences are as follows.
Two methods for creating a stored procedure in oracle
Create or replace procedure getdefault isBegin
Execute immediate
The syntax is the same as that of other SQL database tutorials.DELETE FROM COURSESWHERE COURSE_DESIGNATER = 'java110'
Complex operations by conditions
DELETE FROM CLASSCONVENINGSWHERE CLASSES_NUM_FK> 4AND CLASS_CONVENE_DATE = TO_DATE ('2017-02-15 00:
Oracle Database tutorial cursor usage
1. What is a cursor?
A cursor is a PL/SQL control structure that allows you to control the display of SQL statements to facilitate the processing of table data one by one.
2. cursor Classification
Display cursor:
I can only solve one of the problems I encountered here, and there may be other problems that I have not encountered.Symptoms:Log on to EBS. Normally, an error is returned when you click the Form to bring up the Form.The prompt is as
The article will analyze the orecle To_Date () date operation. If you need it, you can refer to it. The function usage is very simple. It is mainly a reference table.
First look at the syntax of the to_date () function
To_date (string1, [format_mask]
1. Constraints
2. External Connection
3. View
4. conversion functions To_char converts the parameter to a string. To_char (date | represents the date string, 'format') is expressed in a certain format To_char (hiredate, 'dd') = '03' To_date parses
Dbms_metadata some usage test learning View create table space statements
SQL head pages dbms_metadata.get_ddl(,) SIZE BLOCKSIZE RESIZE
View User Creation statements
SQL dbms_metadata.get_ddl(,) "TEST" IDENTIFIED
There was a demand for a while ago, and the sorting rules should be arranged according to the user's needs:
Example:
The database is Oracle, which sorts the class fields of table table_example. The class fields include A, B, C, and D.
The user
Check the concept on the bus. The oracle lock mechanism is somewhat different from MSSQL. Take the time to sit down and test it.
Oracle uses the lock mechanism to provide data concurrency, consistency, and integrity between transactions. These
Although EF6 is coming soon, it is a big pity that Oracle databases can only be programmed with DB first and Model First, rather than Code First.
Let's take a look at how EF uses DB first and Model First to program Oracle.
First we want to download
64-bit oracle10g installation in win7
:Http://download.oracle.com/otn/nt/oracle10g/10204/10204_vista_w2k8_x64_production_db.zip
1. In \ database \ stage \ db \ refhost. xmlAdd the following to the CERTIFIED_SYSTEMS element:
2. In \ database \
DBTwin Database ClusterShows the principle structure of the database cluster:
20130312210124. png(27.47 K)21:05:42
DBTwin implementation principle
20130312210230. png(19.52 K)21:05:42
Transactions are a basic but important concept in
1. Modify the Oracle field type/* modify the original field name */Alter table name rename column field name TO field name 1;/* Add a field with the same name as the original field */Alter table name ADD field name VARCHAR2 (30 );/* Update the
Use the dbstart and dbshut scripts to automatically start and close the database:1. log on to the user root.2. Edit the oratab file of your platform.Open the/etc/oratab file:The database entries in the file are in the following format:SID:
Create a tablespace
datafile size 100M;
identified tablespace qnhouse;
Authorize a user
connect,resource qnhouse;
Table creation and constraints
id name () PK_district_id id
Flashback has two main functions: flashback query and flashback table/database)Enable the flashback function (you can enable database flashback only after archiving)
name,flashback_on v$; system db_recovery_file_dest_size; system db_recovery_
1, %: represents any 0 or multiple characters. It can match any type and length of characters. In some cases, if it is Chinese, use two percent signs (%.For example, SELECT * FROM [user] WHERE u_name LIKE '% 3%'We will find all records with "3",
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