oracle regular expression function-regexp_substr use example.5 parametersThe first one is the string enteredThe second one is the regular expressionThe third is to identify a regular expression match starting from the first few characters. (Default
The For statement is a loop control statement that can preset the number of cycles, which is a loop counter, usually an shaping variable that controls the number of times the loop is executed by this loop counterThe syntax is as follows:For variable_
Oracle gets this week, this month, the season, the first day of the year, and the last day--This weekSelect Trunc (sysdate, ' d ') + 1 from dual;Select Trunc (sysdate, ' d ') + 7 from dual;--This monthSelect Trunc (sysdate, ' mm ') from dual;Select
The REGEXP_INSTR function lets you search for a regular expression pattern string. The function uses the characters defined by the input character set for string calculations.It returns an integer that indicates the start or end of the matching
Modify Oratab under 1.root User (n should be y):[Email protected] ~]# vim/etc/oratab mytest:/oracle/product/11.2. 0/db_1:y2.oracle User modified under:[[Email protected] ~] $CD $ORACLE _home/bin[[email protected] bin]$ vim DbstartFind
Note is used to explain the program code, it can enhance the readability of the program is easy to understand the program.Single-line Comment:With "--", followed by the contents of the commentDeclareNum_sal Number;--declaring a variable of a numeric
Use the%type keyword to declare a data type that is the same as the specified column name, which is usually followed by the specified column name.2 Benefits of using%type:1. Users do not have to look at the data types of individual columns in the
This is an Oracle's column change function: Listagg ()Look at the sample code first:SQL code
With temp as (
Select ' China ' nation,' Guangzhou ' to dual Union All
Select ' China ' nation,' Shanghai ' to dual Union All /c9>
Centos6.4Find instant Client from Oracle website:Http://www.oracle.com/technetwork/cn/topics/linuxsoft-100466-zhs.htmlDownload Basic and SqlplusWhat I'm downloading here isInstantclient-basic-linux32-11.2.00.1.zipInstantclient-sqlplus-linux32-11.2.00
1. View information for all objects under a user:SELECT owner, object_type, status, COUNT (*where owner='xxx' 2View Code2. View the number of table rows (multiple tables) (the table must be analyzed first):1 Select 'Analyze Table'|| table_name|
First, when establishing the table, pay attention to the role of pctfree parametersPCTFREE: The percentage of space reserved for a block, indicating when the data block can be insert, the default is 10, indicating that when the free space of the
Import java.sql.*;
The packages used in JDBC are almost always in import?java.sql.*;
Import Oracel or MySQL packages and load drivers in your project:
The classpath of the project and the classpath of the system are put in
Introduction to AWR
AWR stands for Automatic Workload Repository ).
It collects statistics by comparing two snapshots to generate reports in the form of txt or html pages.
Generally, the AWR report can be used to understand the system pressure
SQL join and SQL JOIN
The join keywords in SQL statements are commonly used and not easy to understand. The following example provides a simple explanation-creating tables table1 and table2:Create table table1 (id int, name varchar (10 ))Create
Oracle viewing object information, oracle viewing object
1. View information about all objects of a user:SELECT owner, object_type, status, COUNT (*) count # FROM all_objects where owner = 'xxx' group by owner, object_type, statusorder by 2;View
Common Oracle SQL skills (conversion) and oraclesql skills
1. Avoid "*" in the SELECT clause.When you want to list all columns in the SELECT clause, using dynamic SQL COLUMN reference '*' is a convenient method. unfortunately, this is a very
Implement the generate_series function of POSTGRESQL in OraclePostgreSQL has a sequence generation function that allows you to easily create data. Here, I use ORACLE to implement the generate_series function of PGSQL.POSTGRESQL.
T_girl = # select *
Stored Procedure-Comparison Between MySQL and Oracle1. introduction to Stored procedures our commonly used database language SQL statements must be compiled before execution, while Stored procedures (Stored Procedure) is a set of SQL statements for
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