Oracle PL/SQL control structure PL/SQL is a process-oriented language with a logic-oriented control language. The main logical control statements include IF, IF .... ELSE..., IF .... ELIF ....., nested IF, CASE, LOOP, WHILE... LOOP,... LOOP, cursor
Oracle tool: tkprof Analysis 1 Definition of the executable tool used to analyze the oracle trace file and generate a clearer and more reasonable output result as needed 2 preference [SQL] F: \> tkprof www.2cto.com Usage: tkprof tracefile outputfile
Use SQL> set colsep ''for the oracle set command; //-domain output separator. SQL> set term {ON | OFF}; // on: the query result is displayed in both the offline files and SQLPLUS files. off: the query result is only displayed in the offline files.
Oracle Table Partitioning has been studying the knowledge of Oracle Table Partitioning for a while. As the data volume continues to expand, the Partitioning technology is a very effective technology to improve efficiency. Www.2cto.com is limited to
Solve the problem that sqlplus disappears after login in win7 many win7 users will have this experience when using sqlplus, including some other such as toad and PL/SQL. The graphic interface disappears when you click log on. This problem occurs
The database user is deleted, and the tablespace and data files are all there. How to restore the environment: www.2cto.com [html] SQL> select * from v $ version where rownum = 1; BANNER ---------------------------------------------------------------
Oracle queries the SQL code www.2cto.com select * from (SELECT. *, (select count (distinct B. fee_name) from biz_patent_fee_notice B where B. main_id =. id) notices, (select count (distinct B. fee_name) from biz_patent_fee_notice B where B. main_id =
Several ways to delete a table in Oracle: DELETE the table (record and structure) language name DELETE ---- truncate ---- drop delete (DELETE the statement recorded in the data table) www.2cto.com delete from table name WHERE condition; note:
ORACLE obtains the month list between a certain period of time to obtain the month list between a certain period of time (the example returns the month list between and) www.2cto.com SELECT TO_CHAR (ADD_MONTHS (TO_DATE ('2017-03 ', 'yyyy-mm'),
Oracle needs to create two tables test1, test2: www.2cto.com create table test1 (id Integer primary key, name varchar2 (40 )); create table test2 (id integer primary key, age integer, height number); insert multiple data entries into a table at a
Oracle deletes the data SQL code www.2cto.com CREATE OR REPLACE PROCEDURE "INDI_DEL_PRO" (IDPARA IN INDIVIDUALVIEW. ID % TYPE, categorypara in individualview. CATEGORY % TYPE, returnpara out number) as applyno individualview. APPLY_NO % TYPE; begin
As a DBA, the summary of oracle zone management and segment space management is one of the common scenarios: Creating tablespaces: www.2cto.com [SQL] create tablespace Think datafile '/u01/app/oracle/oradata/orcl/think. dbf 'size 100 M autoextend on
Comparison between the round () function and trunc () function in Oracle round (x [, y]) www.2cto.com [function] returns the rounded value [parameter] x, y, numeric expression, if y is not an integer, the y integer is truncated. If y is greater than
Oracle order by sorting adds the sorting by pinyin, radicals, and strokes in oracle9i. Set the NLS_SORT value SCHINESE_RADICAL_M to sort SCHINESE_STROKE_M By the beginning (First Order), strokes (Second Order), and heads (Second Order) by the
Recently, someone asked me this question about oracle BEQ processes. I used to see this introduction on a foreign recognition site. In sqlplus, enter conn/as sysdba, at this time, sqlplus starts a server process and uses the ps command to check that
The trim function in oracle is used to delete the given characters in the header or tail of a given string or given number. The trim function has the following form: www.2cto.com trim ([leading/trailing/both] [matching string or value] [from]
SQL not in: in SQL queries, select * from t1 where c not in (select c2 from t2) If c2 in t2 has null, the result of this statement may be, only when the NULL value must be filtered out in the subquery can www.2cto.com select * from t1 where c not in
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