1. What tables are derived from the foreign keys in the view table in OracleSelect Cl.table_name from user_cons_columns Cl left joins user_constraints c on cl.constraint_name = C.r_ Constraint_name where c.constraint_type = ' R ' and
First, when we need to process SQL statements in XML format, we often use symbols such as ,>= and so on, but it is very easy to cause errors in XML format, which causes the background to convert the XML string to the XML document times error, which
Format of the triggerThe name of the Create or replace trigger triggerBefore [after] insert[update,delete]On which table the on action[For each row] If a statement-level trigger is not written, row-level triggers are writtenDeclareBeginEnd--trigger
When importing data to Oracle, there is a column to import the data should be in the format of ' 2017-04-17 ', the result of importing data is ' 2017/04/17 ' format, more than 1000 records to change the basic impossible. So think of the Replace this
Learning the database, we are just learning attitude, consider how to use the database command statements, did not think about the work, if the wrong operation, can lead to irreparable loss. When I really met these questions at work, I started
1. In the PL/SQL interface, locate the Directories folder and locate the path to the directory file.2. Access the server via SSHLocate the appropriate path Cd/u01/oracle/dpdirInput instructionsDf-h View Resource UsageSu–oracle Oracle users entering
Record the use of exit and returnExit to jump out of the loopLoopIF V_KBP is NULL thenEXIT;END IF;End Loop;Return jump out of stored procedureLoopIF V_KBP is NULL thenReturnEND IF;End Loop;Jump out of Loop onceOracle 11g has provided continue;Oracle
[SQL]View PlainCopy
Update (Select Length (t.name), t.* --name,length (name)
From G_enterprise_info T
where NVL2 (translate (name, ' \1234567890 ', ' \ '),
' is characters ',
' is number ') = ' is number '
and Asciistr (GSZCDJH)
--Printing output positive integers from 1 to 10DECLAREV_i Number (10): = 0;BEGINLOOPV_i: = v_i + 1;Dbms_output.put_line (v_i);EXIT when v_i=10; --or v_i>9;END LOOP;END;--an even number of printouts from 1 to 10DECLAREV_i Number (10): = 0;BEGINLOOPV_
1. Copy the table structure and its data:CREATE TABLE Table_name_new as SELECT * from Table_name_old2. Copy only the table structure:CREATE TABLE Table_name_new as SELECT * from Table_name_old where 1=2;Or:CREATE TABLE table_name_new like Table_name_
Similar indexof usage _instr functions in Oracle[SQL] does not have a indexof () function in Oracle but provides a InStr () method for specific usage: Select InStr (' Baoding Nanshi District ', ' City ', ' 1 ')-from dual; Explanation: 1. ' Baoding
Performance testing sometimes need to analyze the execution of SQL, to identify the need to optimize the Sql,oracle database to provide a good database status and SQL performance monitoring platform, the database monitoring platform can always
A colleague creates an instance on Oracle 10g, and at the end of the page, an error pops up, prompting for a failed listener. View the service without generating a listening service. So I deleted it, tried it several times, and so on.It's really
Today do bootstrap treeview, require input Node ID ID, parent node ID PID, textBut the SQL aliases executed are all uppercase, so the question of how to find the next ORCL alias is lowercaseThe code is as follows:Select t.fun_id "pid", T1. fun_id id,
Oracle system table QueryOracle queries all tables under the userSELECT * FROM All_tab_comments--Query All users ' tables, views, etc.SELECT * FROM User_tab_comments--Query the user's table, view, etc.SELECT * FROM All_col_comments--queries the
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