numeric function:
Absolute value of ABS (m) m
MoD (M,n) m is the remainder after the n is removed
Power (M,n) m's n-th-side
Round (M[,n]) m rounded to n digits after the decimal point (n defaults to 0)
Trunc (M[,n]) m truncates the value of n-bit
A thorough set of deletions containing data files and content is emitted, and if used manually, DBAs will be extremely cautious in spelling such commands:
Wed May 02 10:46:09 2012/* Oracleoem */DROP tablespace "Wndt" including CONTENTS and
There are four main functions in Oracle that support regular expressions:
1,regexp_like: Similar to like function
2,REGEXP_INSTR: Similar to INSTR function
3,REGEXP_SUBSTR: Similar to SUBSTR function
4,regexp_replace: Similar to REPLACE function
Grammar
The code is as follows
Copy Code
InStr (string1, string2 [, Start_position [, Nth_appearance]])
String1 is the string to search for.
string2 searches for substrings in string1.
Start_position is where
Oracle self-Adding column creation method collection
Oracle does not have such features as the self-adding fields, but it can be implemented by triggers (trigger) and sequences (sequence).
First build a test table:
CREATE TABLE Userlogin(
ID
Whether the instrumentation field in Oracle includes Chinese charactersSELECT *From (SELECT ' ABCdef ' AA dualUNION ALLSelect ' ABC what is this de ' AA from dualwhere AA <> convert (aa, ' us7ascii ', ' ZHS16GBK ');
Aa
--------ABC what is this
Copy code code as follows:
Declare
Cursor C1 is select * from T_depart;
V_depart T_depart%rowtype;
Type V_code_type is table of T_depart.depart_code%type;
V_code V_code_type;
Type V_name_type is table of T_depart.depart_name%type;
V_name
First, the query table basic information
Select
Utc.column_name,utc.data_type,utc.data_length,utc.data_precision, Utc.data_scale,utc.nullable,utc.data_default, Ucc.comments
From
User_tab_columns utc,user_col_comments UCC
where
Utc.table_name =
User name / Password
Logon identity
Description
class= "MsoNormal" >sys/change_on_install
sysdba or sysoper
cannot be normal login, as the default system administrator
class= "MsoNormal"
UNIX shutdown order, first shut down the database, then the operating system, and finally the power downOnly users with SYSDBA and Sysoper system privileges can start and close the database.You should start the listener before you start the database,
Example 1
The code is as follows
Copy Code
–select * from TMN_ZHBG ORDER BY id DESCSelect ID, mc,fs,class,sum (FS) over (the order by Fs,id) continuous accumulation, sum (FS) over (order by FS) continuous accumulation of
1. After installing Oracle database: Execute Dbstart and Dbshut will prompt:
The code is as follows
Copy Code
[oracle@oracle11g ~]$ DbstartOracle_home_listner is isn't SET, unable to auto-start Oracle Net ListenerUsage:
Connecting to an Oracle database is simple, as follows
The code is as follows
Copy Code
Connectionstring= "PASSWORD=CZH; User id=czh;data source= (description= address_list= (address= (protocol=tcp) (host=192.168.168.211
Problem Handling methods:Query: Select Userenv (' language ') from dual;Compare the value of the computer environment variable Nls_lang with the query result, if not, modify the computer environment variable Nls_langAfter solving the problem, we
Because of the project needs, in a Query page query field Support multi-keyword query, support space-delimited query conditions, it is implemented as follows:The principle used is: thefunction Regexp_likethat supports regular expressions in Oracle,'
Common Database object tables: A basic collection of data stores, composed of rows and columns: Logically related data collection sequences extracted from a table: Provides a regular numerical index: improve efficiency of queries synonyms: Aliases
The editor reminds you of several notes.1. Configure. net to debug web applicationsIf the installation disk is FAT32, you must change the settings in IIS. IIS-> default web site (right-click)-> all tasks-> Configure Server extensionIf the mounting
A. Username system password linuxman export to D:/linuxidc. dmpExp system/linuxman @ SID file = d:/linuxidc. dmp full = yB. Export the tables of system users and sys users in the databaseExp system/linuxman @ SID file = d:/linuxidc. dmp owner =
Example: delete table space abc,First, log on to the database as a sysdba user.$ Sqlplus/as sysdbaDelete tablespaceDrop tablespace abc including contents and datafiles;Because the database is used by the development environment, there are many user
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