/**//*
-- Create a table
Create table student (
Recordid number (38 ),
Sid int not null,
Sname varchar2 (50 ),
Sdate date,
Sage number (3)
);
*/
-- Delete a table
-- Drop table student;
-- Insert data
/**//*
Set serveroutput on -- allow server
3 ways to declare and assign an Oracle stored procedure variable creationtime--2018 August 31 16:00 author:marydon1.3 Ways to declare variablesDifferentiate by the way data types are declaredWay one: declaring data types directlyFormat: Variable
1. Define (that is, host variable)The main role of the host variable is to act as an alternative variable, a medium in which the host environment can interact with Oracle . When you define a host variable by define, you must specify the variable
Created:
Article attributes: original
Article submission: T_Torchidy (jnchaha_at_163.com)
Oracle web Environment Injection Technology## BY Jianxin# Http://www.loveshell.net/#
Preface
I am not a professional database administrator, nor a researcher
Oracle stored procedures, declaring variables, for loops1. Create a stored procedureCreate or Replace procedure test (var_name_1 in type,var_name_2 out type) as--Declaring variables (variable name variable type)Begin--The execution body of the
Oracle reported that DBLink synonym calling during Stored Procedure error: PLS-00201: must declare identifier, dblinkpls-00201
A stored procedure needs to be written a few days ago to access the field of the remote database, so a dbLink is created
Use of % TYPE and % ROWTYPE in ORACLE, % type % rowtype 1% TYPE description
To make the data TYPE of a variable consistent with that of another defined variable (especially a column in a table), Oracle provides the % TYPE definition method. When
Restore accidentally deleted oracle data files
Recovery Method for accidental deletion of oracle data files on the Linux platform simulates misoperations: the database is running normally and data files are directly rm. -- 1. test Environment: $ cat/
Despite repeated caution, there is a human error deleting the database file. Simple steps, perhaps the key moment can be a big help.Environment: CENTOS 6.5Analog error Operation: The database is in normal operation, the manual direct RM dropped 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.