Oracle provides a tree structure for hierarchical queries:
Start with: specifies that the record is a condition for the root node. You can have multiple root nodes.
Connect by: Specifies the condition for the relationship between the parent node
. Oracle hierarchical statement Tree Structure
Area_id is the regular primary key ID corresponding to parent_id... administrative partition table
1. Start with T. parent_id. Here parent_id does not display the top root node, so there will be
Most people, not all of whom are usually used in development, are 32-bit PCs. Therefore, oracle32-bit clients are installed. However, the general server is 64-bit and the 64-bit Oracle client is installed. to deploy the application that uses oracle.
Background: Processing null values during sorting,
In Oracle official documents, null values are a special value type in the sorting process. By default, null values are regarded as the maximum value. That is to say, during sorting, when the null
WINXP, ireport3.7.6, Oracle 10g When connecting to the database, use JDBC to connect to the Oracle 10 Gb database. The following error occurs during "test: Classnotfounderror: Oracle. JDBC. Driver. oracledriver check your classpath! Error Code
1. Download the Oracle Instant Client.Be sure not to download instantclient-basiclite-win32 that only supports English, which does not support other languages.: Http://www.oracle.com/policy/software/tech/oci/instantclient/index.html, and select your
SQL> shutdown immediateThe database has been closed.The database has been detached.The Oracle routine has been disabled.
Start method:
Enter dos Input
Connect sqlplus/nolog to SQL
SQL> Conn/As sysdbaConnected.
SQL> shutdown abort
I. background:
Today, I am working on an OA system. The original database was from Oracle and then changed to the PostgreSQL database. At the beginning, I migrated the database to PostgreSQL. The sequence and table creation were completed through
I have previously written Oracle and Hibernate to support pinyin sorting. to optimize it, I wrote a small bug: After rewriting the order interface of hibernate, all fields are sorted by pinyin,
As a result, the sorting of the time and number types
Common Oracle commands1. Connect to the database
Connect user name/Password
Example: connect Scott/tiger; equivalent to conn Scott/tiger;
2. Disconnect
Disconnect is equivalent to disconn;
3. Change the user's password
Password is
Dbutil class. Later, I gradually thought it should be a tool class used to connect to the database. This is the dbutil class I extracted from the last sqlhelper class. It's just for your reference. It's not the dbutil class in instructor Han's video.
Oracle startup routine: startup parameter descriptionContent or introduction:1. Start the case without loading the databaseYou can start the instance without loading the database. This is generally done only when the database is created:Startup
1. Multi-Table query:
Select * from Scott. Dept;Select * from Scott. salgrade;
Select * from Scott. EMP, Scott. Dept;Each record in the dept table is matched with each record in the EMP table;
Cartesian Product: If a multi-Table query does not
For tables with massive data volumes, index creation and query are much faster than those without indexes.Maintain data integrity
Description: data integrity is used to ensure that database data complies with certain commercial and logical rules. In
Manage tablespaces and data files
Description: tablespaces are logical components of databases. Physically, the database data is stored in the data file. Logically, the database is stored in the tablespace, which is composed of one or more data
Oracle Transaction Processing
* What is a transaction?A transaction is used to ensure data consistency. It consists of a group of related DML statements. The DML statements in this group are either all successful or all failed.. Transactions and
Data Dictionary and dynamic performance View
Data dictionary is the most important component of Oracle database. It provides some system information of the database.The dynamic performance view records information after the routine is started.I.
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