· The role of Constraints Defining rules ensure the integrity of your data· Constraints Non-null constraints① Adding a non-empty constraint to a field when creating a tableCREATE TABLE table_name (column_name data_type not NULL, ... );②
1 The difference between function and procedure1). You can understand that a function is a 2 of a stored procedure. A function can have no parameters, but a return value must be required, and the stored procedure can have no parameters and does not
Today, when looking at a data sheet of a legacy system, we find that the view that we look for is a full-out join, which results in some restrictive processing of the data records, and can also be achieved by setting the view tables as right outer
CREATE OR REPLACE Package pak_02 is--Header--Here you can define public parameter function fun_01 RETURN number; PROCEDURE pro_01; END; CREATE OR REPLACE Package Body pak_02 is----Here you can define a private variable function fun_01 return number
Views (view)A view is also known as a virtual table, which is a logical representation of a set of data.The view corresponds to a SELECT statement, and the result set is given a name, which is the name of the view.The view itself contains no data,
http://blog.csdn.net/pan_tian/article/details/8169339With a little tip, Oracle EBS can bypass the job and function selection process after landing, and you can open a specific form directly so that the entire landing process is faster.Method: Oracle
1.decodeMeaning explanation:Decode (condition, value 1, return value 1, value 2, return value 2,... Value N, return value N, default value)The function has the following meanings:IF condition = value 1 ThenRETURN (translation value 1)elsif condition
1. Check the system version number:uname-aLinux node2 3.10.0-123.el7.x86_64 #1 SMP Mon June 12:09:22 UTC x86_64 x86_64 x86_64 gnu/linuxCat/etc/redhat-release#CentOS Linux release 7.0.1406 (Core) Comment out the previous version numberRedhat-7
2015-10-24DirectoryResources[1] Oracle Database Import and Export command![2] Oracle database Import and Export command summary[3] Oracle data import and export[4] Oracle Import and Export command[5] Oracle Import and Export[6] An explanation of the
Same point:1.truncate and delete without a WHERE clause, and drop deletes the data in the table.2.drop, truncate are DDL statements (data definition language) that are automatically committed after execution.Different points:1. Truncate and delete
--Demonstration of implicit cursors, automatic system declaration, auto-open, auto-use and auto-closeBegin Update emp Set sal = 1000; Dbms_output.put_line (' Number of rows affected: ' | | sql%rowcount);EndRollback/* How to use cursors:First
Performance tuning is a task that every DBA can encounter in his careerBig to the World 500 strong core system, small to the township enterprises of the invoicing, almost will have to tune the timeFaced with a variety of systems, a wide range of
1. Switch archive, perform rman full library backup2. On the transmitting server.3. Restore it--create a corresponding directory1. Modify the configuration file, proportionally modify the configuration parametersCreate a corresponding directory
Cited:To illustrate this, a score table is created, as shown in:Comparison:1, in SQL, these two functions we can only use case, the code and the results are as follows:Select Name,Case SubjectWhen ' Chinese ' then 1When ' math ' then 2When ' English
A summary of Oracle that allows Java program apes to look through at any timeForeword : Oracle study also has more than 10 days, but, next also to learn many other things, and can not mention step, so this summarizes the following Oracle common
Example:Session 2:Sql> Connect Test/testConnected.SELECT * from V$mystat where rownum=1;143Select b.spid,a.sid,a.serial# from v$session a,v$process b where a.paddr =b.addr and a.sid = 143;?Session 1: Open the 10046 event for the corresponding
Obtain corresponding information from dateCreate a test table:
Create or replace view v ASSELECT TO_DATE ('2017-5-5 13:14:15 ', 'yyyy-MM-DD HH24: MI: ss') AS c from dual; SELECT * FROM v;
The SQL code is as follows:
When SELECT c, TO_CHAR (c, '
Oracle mail, oracle
Create or replace procedure PRC_sendmail (p_receiver VARCHAR2, -- mail recipient p_subject VARCHAR2, -- mail title p_message VARCHAR2 -- mail body) IS -- the following four variables should be assigned v_smtphost VARCHAR2 (30): =
Linux Oracle deletes archive logsToday encountered Oracle reported such an error: ORA-00257 to view the next, the original Oracle archiving logs are full, Solution Two One: increase the size of the archive log two: delete useless archive logs (we
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