-- Sequence in Oracle is equivalent to the columns automatically added and uniquely identified as a table in SQL Server.
-- The following is a simple sequence:
-- 1. Create a sequenceCreate sequence sq -- sq declares the name of a
From: http://www.iteye.com/topic/508161
Recently, javaeye found that many comrades know little about SQL optimization. Recently, I have summarized several articles for reference only. However, a few of them may depend on the situation, most of
From http://9494.iteye.com/blog/48553
Introduction:
Generally, the primary keys of tables increase automatically. in Oracle, sequence-based auto-growth is more suitable.
1. Sequence creation format:
Create sequence nameIncrement by 1Start
Problem: Today, the customer needs to use the value of a field on the interface through lov, however, you do not want to develop an additional interface to maintain or enter it by yourself (because the data changes little here)
Solution:
1. The
We know that SQL Server and Oracle are similar in many ways. in particular, some common SQL statements follow the standard. therefore, they can also have a certain degree of interoperability. how to configure SQL Server to connect to an Oracle
Reprinted from: http://zl198751.iteye.com/blog/992795
Oracle connection
Nested loopFor a small subset of connected data, nested loop connection is a good choice. NestedLoop is to scan a table. Every time a record is read, it searches for another
V$ view managed by 9i.
281. V $ access
Displays the objects in the currently locked database and the sessions that are accessing them.
282. V $ active_instances
Creates a ing from Instance name to instance number for all instances in the currently
46. How do I add a carriage return to the string?
Select 'Welcome to visit' | CHR (10) | 'www. csdn. net' from dual;
47. How is Chinese sorted?
Before Oracle9i, Chinese characters were sorted by binary encoding.
The sorting by pinyin, radical, and
Write is a log server that records a large amount of data: When a table is involved, it may need to record a large amount of data, so we have to consider using Table shards to record data,
I wrote a storage process to produce a table every day. A
The following information is from the Internet. You can paste it and save it for future use.
Character function -- returns the character value
All these functions receive parameters of the character family type (except for CHR) and return character
Disclaimer: The system commands described in this article are "#", which indicates the root permission, and "$" indicates the Oracle permission.
1. Install the system
First install the Linux system. According to the recommendations in the
1. Oracle contains the following functions:-AVG ([distinct | all] n) returns the average value, ignoring null values.-Count ({* | [distinct | all]} expr) returns the number of records. Use * to include null values. Otherwise, the value does not
22. ExpReturns the n root of the number E.
SQL> select exp (2), exp (1) from dual;
Exp (2) exp (1)
------------------7.3890561 2.7182818
23. FloorReturns an integer to a given number.SQL> select floor (2345.67) from dual;
Floor (2345.67)------------
Create an instance
// Add using system. runtime. serialization; namespace WZ. EMR. model {/// // The object class data_set. (Attribute description: automatically extract the description of the Database field) // [datacontract] public class
There are similar questions in OCP 007:
Q: 141 evaluate this SQL statement:
Selecte. employee_id, E. last_name, E. department_id, D. department_name
From employees e, departments d
Where E. department_id = D. department_id;
In the statement,
Document directory
SGA (system global areas)
PGA (Program global areas)
Background Process
Instances and databases
Oracle Server = oralce instance + Oracle Databse
DBMS (data base management system) database management system, as its name
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