Oracle database and MySQL, SQL Server, it is in the same database can be defined multiple table space, the different table spaces are independent of each other, each user has a default table space, so basically different user operation of the data
Create or replace procedure Prc_get_sex(Stuname Student.name%type)AsStusex Student.sex%type;BeginSelect Sex to Stusex from student where name=stuname;Dbms_output.put_line (' Students ' | | stuname | | ' The sex is: ' | | Stusex);exceptionWhen
I. Naming rules for table and column names1), must start with a letter2), length cannot exceed 30 characters3), cannot use Oracle's reserved words4), can only use the following characters a-z,a-z,0-9,$, #等ii. Types of data1), character classChar has
Oracle restores data from a table to a point in time OraclesqlExecute the following SQL to restore data from the Test_temp table to 2011 04 29 11:06:00Note that it is important to delete all data first, otherwise it may result in duplication of
1. Querying partial field properties of a tableSelect T.*, c.comments from user_tab_columns T, user_col_comments c where t.table_name = C.table_name and t.colum N_name = C.column_name and t.table_name = ' El_lesson ' and T.column_name in ('
Display information for all partitioned tables in the database: Dba_part_tablesDisplays all partition table information that the current user can access: all_part_tablesDisplays information about all partitioned tables for the current user:
Monitoring scripts executed by Oracle SQL statements! [@[email protected]]--Find the method for bad sql:SELECT * FROM (select Buffer_gets, Sql_textFrom V$sqlareawhere Buffer_gets >500000ORDER BY buffer_gets Desc) where rownum--Perform the number of
--Count The length of stringSelectLENGTHB ('SELECT * from Scott.emp') asCountted_by_byte, Length ('SELECT * from Scott.emp') asCountted_by_char fromdual;--for some character encoding, the length () and the LENGTHB () are same in 中文版--feature to
DeclareV_exists_table Number;begin Select Count(*) intoV_exists_table fromAll_tableswheretable_name= 'NUMBERS'; ifV_exists_table<> 0 Then ExecuteImmediate'drop table NUMBERS'; End if;End;/Create TableNumbers (ID Number
Generating random data under SQL Server is much more dry, but I'm stupid under Oracle. Not used Oracle, do not know what to do? SQL Server relies on tablesample or checksum (NEWID ()) for random sampling, and Oracle has its own random sampling
One, import. sql file@data. sqlSecond, record the log:1. Enter command sqlplus database name/password @ Database Press ENTER2. Enter spool to specify the path: \a.log Press ENTER (This step is to track the bulk of SQL log, the path to write, as long
The following are Oracle Master quotations:
Oracle Database developers should follow is to do everything they can in SQL. What they cannot does in SQL, they should does in PL +. And what they cannot does in PL/SQL, they should do in
The use of the--oracle trunc () function/************** Date ********************/1.select trunc (sysdate) from dual--2013-01-06 today's date is 2013-01-062.select trunc (sysdate, ' mm ') from dual--2013-01-01 returns the first day of the
--create a stored procedureCREATE OR REPLACE PROCEDURExxxxxxxxxxx_p (--The parameter in represents the input parameter, out represents the input parameter, and the type can use the legal type in any Oracle. Is_yminch CHAR) as--Defining
After successfully installing the Oracle 11g database, you will find that your computer is running slower, that your computer is running faster with a lower-profile PC or even a very card-enabled Oracle service. So, how do you do it
Oracle Database System is one of the most popular databases of customer, server (client/server) or b/s architecture in the United States, a group of software products provided by Oracle Corporation with distributed database as its core. For example,
Libclntsh. so.11.1active
Problem of applying a database patch on a database host with OGG deployed $ ORACLE_HOME/lib/libclntsh. so.11.1 active
The following error message is displayed:
[oracle@lei1 17579684]$
Oracle Advanced Programming
Oracle's advanced programming mainly involves the use of the ten objects in the database. Here, I will share with you some of my notes on these skills. Hope to help you!
Before reading this article, you can also refer to
Oracle multi-Table query
To query multiple tables, we must first avoid Cartesian sets. To avoid Cartesian sets, the query conditions should not be less than the number of tables-1.1. Display employee name, employee salary, and employee's department:
Oracle creates restore points before sensitive operations
We all know that there is a snapshot taking function in the vmwarevm. We can save the status of the system at this time. When an unexpected event occurs on one side, we can also restore 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