An Oracle query without parentheses does not contain the specified characters in a record method as follows:
With tmp_t as (
Select 1 as ID, ' Test 4321_cs ' as name from dual UNION ALL
Select 2, ' Test 1200 (Beta) ' from dual Union
Inner joins (inner join).
Outer joins:
Fully connected (full join), left join (left join), right join.
Cross join (cross join).
An outer join is not the same as an inner join, and the query results returned by an outer join contain not only rows
1. Connect the native database
A. If the machine has a static ip,oracle installed, it can connect the native Oracle database.
B. When Oracle is installed, the computer does not have a static IP (that is, when the network cable is not plugged
Copy Code code as follows:
Select A.f_username
From
(
SELECT/*+parallel (gu,4) */distinct Gu.f_username
From T_base_succprouser gu
where Gu.f_expectenddate > (select trunc (sysdate, ' Y ') from DUAL)
and gu.f_lotid=1
and
Usage:sh oracled [Start|stop|restart] SIDs where SIDs is the database name and multiple names are separated by commas. The default action is restart, or you can specify the action you want to take (start | Stop | Restart)
Copy Code code as
Combined Set Totals:Group BY with Rollup/cube
Grouping sets
Sub-query by execution: standard subquery, associated subquery
Standard subquery: Nested subqueries
Scalar value Query
Case with Then
Using Exits queries
Select User_id,user_name from tb_001
Any reprint, please respect the copyright. (Author: Iihero on CSDN)
How do I create a Java stored procedure?
There are usually three ways to create a Java stored procedure.
1. Use Oracle SQL statements to create:
e.g. using create or replace and
Most recent projects require bulk operations, the client passes a comma-delimited set of ID strings to the database, and the stored procedures need to be split and processed individually.
There are several ways to deal with the past:
1, write the
Solve connect to Idle instance problem
First step
View Oracle_sid.
[Oracle@linuxserver ~]$ Echo $ORACLE _sid
Cjdl
The SID here is the same as initializing the file Spfilecjdl.ora.
[Oracle@linuxserver ~]$ CD $ORACLE _home
[Oracle@linuxserver 11.2.0
Deleting a nonexistent table in Oracle, such as drop table notexisttable, prompts:
ORA-00942: Table or view does not exist,
If you use a program to execute the statement, you will report an exception, which requires us to determine whether the
1.1 Database Data full-Library backupNote: This operation requires the database to be started.
Switch to an Oracle user and create a backup usage directory on the OS side:
Mkdir/oracle/backup
Log in to the Oracle database and create a backup
1. Log on to the server create Rman automatically delete archive log scripts two days ago
[oracle@108 ~]$ cat >>del_ora_log.rman Crosscheck Archivelog All;
Delete noprompt expired archivelog all;
Delete noprompt force archivelog until time ' sysdate-
SQL code
Copy Code code as follows:
Select COUNT (*) from user_objects where Object_name=upper (P_table_name);
Select COUNT (*) from User_tables where Table_name=upper (P_table_name);
Create or replace procedure P_drop_table_if_exist_
One thing that has been going on for two weeks is the migration of databases. Do not feel this is a very easy thing to do, but wait until the real to do to achieve the time, their dumbfounded. This tangle,First of all, here's the problem:1. Table
Today we have a statistic that asks for all the days of the month, and if the result of one day is 0, it needs to be displayed, namely: Date number of transactions transaction amount 2009-4-01 1 Ten 20
1. Optimize the application and business logic, this is the most important.
2. Database design phase paradigm and the flexible application of the inverse paradigm. In general, for frequently accessed but infrequently modified data, internal design
First, the foreword:After a period of storage process development, write down some of the development of the summary and experience to share with you, hope for everyone's benefit.
second, suitable for the reader object:Database development
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