Create Or Replace Procedure P_change_fk_status (in_table In Varchar2 , In_type In Varchar2 , In_action In Varchar2 ) Is -- Invalid or valid foreign key of the specified table -- In_table: Table Name -- In_type: R must represent the
Exists(The result set returned by SQL is true)NotExists(The result set is true if SQL does not return)
As follows:TableTable B
The relationship between table A and table B is one-to-many. A. ID=>B. Aid
SelectA. IDFromAWhere Exists(SelectA.
Create Or Replace Package pagequery_pack Is -- Author: Administrator -- Created: 15:47:30 -- Purpose: FEn ye Cha Xun -- Public type declarations Type cur Is Ref Cursor ; -- Public Function and procedure declarations
ReferenceArticleHTTP://Blog.itpub.net/Post/33454/395121HTTP://Www. ADP-GmbH. ch/Blog/2005/May/27. Html
Define a plan (executed every day)
Call dbms_scheduler.create_schedule ('Back_up_indonesiaprod2', Sysdate,'Freq = daily', To_date ('2013-03-
Table C
Procedure
Create Or Replace Procedure P_test_loop_cur (in_test In Varchar2 ) Is /* **************************************** * *********************** Name: [name] * purpose: -- update the data in Table C to
Field name
Hr_employee.activity
Original Field Type
Number (1)
New Field Type
Varchar2 (10)
Modify Scheme
/* modify the original field name */ alter table hr_employee rename column activity to activity_temp; /* Add a field with
Oracle 11g Standard Edition
Correct flashback execution method:
SQL> Shutdown; SQL>Startup Mount; the database is started under Mount.
SQL> Alter Table Sy_global_nameEnable row movement;--This means that Oracle is allowed to modify rowid.
The following error occurs when you log on to the Oracle server from PLSQL developer normally:
Solution
CMD -->
C: \ Users \ administrator. Cici - Think > Sqlplus/ NologSQL * Plus: Release 11.2 . 0.2 . 0 Production On Sunday, January 1,
Eg: Related parsing: Table t_pi_part field ID code namevalue 1 222 avalue 2 222 bvalue 3 333 C add a row mark to the part code with the same code and sort select P by ID. *, row_number () over (partition by P. code Order order by. id DESC) as
I. Prerequisites:
1,Make sure yourSqlserver 2005Already installedReporting Service.
2,Started in the serviceSQL Server,SQL Server Agent,SQL Server Browser,SQL Server Reporting ServicesThis4Services.
3,Sqlserver2005The Working Group version
Today, a group of friends asked what is instance and database. So the Group of Friends said a lot of things that are very theoretical and theoretical. There are a lot of things online. If the questioner can understand them, he will not ask us.
In the Oracle-MSSQL Convert tips (1) I already mentioned several tips that used very often.
Today's project contains too much views, stored procedures and trigger and the lines of these code are big.
So I try to find some tools to validate the
An Oracle Database snapshot is a table that contains query results for one or more tables or views on a local or remote database. That is to say, the basic principle of a snapshot is to save a query result from a local or remote database in a table.
These days I maid a project to convert SQL statements between Oracle and MSSQL and learn a lot.
1. Auto increament column issueSQL Server: When create table define this column property identity (0, 1)Oracle: Must use a sequence and a trigger as
Original Author: blog garden Yihui original text: Link
ForDBAFor example, databaseJobI am not familiar with this because it is often necessary for the database to automatically execute some scripts, back up the database, refine the data, or
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