---view tablespace name and file location: Select Tablespace_name, file_id, File_name,round (bytes/(1024*1024), 0) Total_space from Dba_data_ Files ORDER BY Tablespace_name---How to see if the Oracle Tablespace is automatically expanded
One, operatorArithmetic operators: +-*/Can be used in SELECT statementsJoin Operators: | | Select Deptno| | Dname from Dept;Comparison operators:> >= =! = Logical operator: not and ORSet operators: Intersect, Union, union all, minusRequirement: The
Oracle Number type query, sometimes you encounter the problem of loss of precision, the following shows you a resolution of the Oracle Number type query precision loss method for your reference.One, the Oracle number type query needs to find the
Now there is a demand, the database of a hand to lose the ' birthplace ' field, in accordance with a certain standard interception display on the report, for example, if the ' birthplace ' of the content is: ' Shandong province Weifang Changle
Example 1:Delete from where exists (Select1fromwhere a.id=b.id)Example 2:The Rebatepolicy table is the primary table, Rebatepolicyitems is the primary key from the table that has the primary table, and now the corresponding sub-table of the data
1. View all users in the Oracle database: (1) Log in to the database using an account with DBA authority; (2) Execute select username from dba_users. SQL> conn sys input password: connected. SQL>Select from dba_users; USERNAME-----------------------
First, in Oracle, enter select Userenv (' language ') from dual to find out how the encoding used by Oracle is, and mine is simplified Chinese_china. ZHS16GBK. AfterStart-run-Enter regedit-carriage Enter the registry, click
First, IntroductionStored procedure: is a program created in the database for others to call. Actually, I feel like I'm defining a method.Two, no parameter stored proceduresAs below, the classic output "Hello world" to get started stored
The original is here: Poke6 parametersThe first one is the string enteredThe second one is the regular expressionThe third one is the substituted characterThe fourth is to identify a regular expression match starting from the first few characters.
* Related environment: Windows 10, 64-bit operating system, Oracle 11gr2;toad for Oracle12.1 Recently in the Learning Oracle database, using Toad for Oracle to view the database information, found in the SYSDBA role in the database, regardless of
1. Convert the Oralce database on the server to DMP and then import the local temp library2. Change the date in the Oracle table to timestamp;A. Create a table first CREATE TABLE Type_table_info ( table_name varchar2 (), column_name varchar2 (
1. Create a tableSQL code 650) this.width=650; "class=" star "src=" Http://1395573703.iteye.com/images/icon_star.png "alt=" Favorite Code "style=" border:0px; "/>
Create Table Test (
ID VARCHAR2 (10),
Age Number
);
2.
Oracle creates data in three ways:I. Using DBCA (Database configuration Assistant);Second, the use of the CREATE Database Directive;Third, the database is created when the database software is installed;I. Creating a database using DBCAMy
Oracle deduplication Data Recovery is divided into two methods:SCN and time stamp two methods of recovery. I. Recovering deleted and committed data through the SCN1. Obtain the SCN number of the current databaseSelect Current_scn from V$database;
--substr (string, intercept start position, intercept length) = return the intercepted wordSelectSubstr'miaoying',0,1) fromDual--The returned result is: MSelectSubstr'miaoying',1,1) fromDual--The returned result is: m--description 0 and 1 both
First in the formation of Chinese garbled reason is due to the character set is not unified, different character sets in the process of conversion will inevitably appear garbled, of course, do not exclude can be converted. So to solve the problem of
Today the Oracle in the package and the cursor learning, no nonsense, some of the online code is wrong, copied to copy, on their own practice under, make a record. Direct, on the codeCreate your own package with Plsql, which is divided into Baotou
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