ListaggSelect*from emp Select Listagg(ename,'-')withinGroup(orderby Deptno Desc)from emp; You can see features like Wm_concat, you can customize the connector, the difference:Listagg? : 11G2 only provides functions that do not
I. Maintaining the integrity of the dataData integrity is used to ensure that database data complies with certain commercial and logical rules, and in Oracle, data integrity can be implemented using three methods of constraints, triggers,
1. Check that the database has full-text indexing (this is for a database that is already in use)See if there are Ctxsys users in the user, and whether the Ctxapp role exists in the query role. 1 of the above two are not satisfied (not present),
Department 326 is the parent department of Department 329, department 2 and department 326 are peers;Account Muyunfei, belonging to 329 departmentsThe message is sent to department 2 and department 3,262 departments (326|2), sending the department
/*** Connect different databases by changing configuration files*/PackageCom.xykj.jdbc;Import Staticorg.junit.assert.*;ImportJava.io.InputStream;Importjava.sql.Connection;ImportJava.sql.Driver;Importjava.util.Properties;Importorg.junit.Test; Public
http://blog.itpub.net/161195/viewspace-613263/LENGTHB (string) computes the byte length of a string: returns the length of the strings, in bytesLength (String) calculates the string's characters: the length of the returned strings, in charactersFor
one, character functionsThe character function is the most commonly used function in Oracle, so let's see what the character functions are:Lower (char):Converts a string to a lowercase format.Upper (char):Converts a string to an uppercase
1. Copy the table structure and its data:CREATE TABLE Table_name_new as SELECT * from Table_name_old2. Copy only the table structure:CREATE TABLE Table_name_new as SELECT * from Table_name_old where 1=2;Or:CREATE TABLE table_name_new like Table_name_
This summary is just a few new contacts to make a list, to facilitate later into the study to see1, constant representation: constant2, type%Type; example: Table name. Column Name%type;--indicates the type of the variable is the type of this column3,
Oracle's goldendate is a software used to do data disaster recovery is commonly known as OGG, of course, can also be used to support the hot backup database, and cross-platform cross-database data migration, specific understanding can be self-Baidu.
Fourth. Index4.1 Definitions
An index is an optional structure associated with a table. By creating indexes, you can improve the performance of data updates and retrievals. The Oracle index provides a direct access path to the data row.
When IMP imports a table, you are prompted with no permissions on Tablespace ' icity '.After Baidu, view to use DBA user login, write SQL statement execution can authorize.Alert User Dg_bagsh quota unlimited on icity;Alert User Dg_bagsh quota
1. NVLThe format of the NVL function is as follows: NVL (EXPR1,EXPR2)The implication is that if the first parameter of Oracle EXPR1 is empty, then the value of the second parameter is expr2, and if the value of the first parameter expr1 is not NULL,
In Linux, the Oracle database is automatically backed up using scripts and the backup days ago is deleted.
Note:
Oracle Database ServerOperating System: CentOSIP: 192.168.0.198Port 1521SID: orclOracle Database Version: Oracle11gR2
Specific
OracleSolaris and pcidss
Today on the Oracle official website to search for pci dss, unintentional search for Oracle Solaris information about pci dss (see the following url: https://docs.oracle.com/cd/E56344_01/html/E53940/makehtml-id-4.html ),
Create scott/tiger at the beginning of Oracle for test. scotttiger
Install oracle11g database software on redhat5.5 (32bit), install a database, log on to the database, and create scott/tiger for testing.
First, log on to the database. The database
Usage of rownum in Oracle
There is a product table. If you are required to query the first five items on the latest date of release. How do you write your SQL statements? Determine the conditions before sorting? Error.
The idea is simple, that is,
Create Table space, user, and permission configuration in oracle
Different from mysql and sqlserver databases, an oracle database can define multiple tablespaces in the same database. Different tablespaces are independent of each other. each 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