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
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
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
If you change the IP address, you need to re-create em. The following is the EM command:
Create an EM DatabaseEmca-repos createRebuilding an EM DatabaseEmca-repos recreateDelete An EM DatabaseEmca-repos dropConfigure Database Control for the
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
From: http://www.cnblogs.com/jevonsea/archive/2009/07/30/1535492.html
Today, we need to store all the space data in the station into the database. Therefore, we have installed oracle on the server and need to connect it locally. We checked the
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
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
1. Basic Oracle Query
This is the most important operation on a table.* View the table structure
desc dept;
. Query all columns
select * from dept;
. Query specified Columns
select empno, ename, job, deptno from emp where ename = 'SMITH';
In Oracle,
1. Why can't I export the data using the
Create_time ,
It may be that the date in your pipedate field contains hours, minutes, and seconds.To_date ('1970-08-19 ', 'yyyy-mm-dd') = '1970-08-19 00:00:00' So there is no record.
That is, your 12:01:12
Jar files:
Mysql-connector-java-5.1.7-bin.jar (* http://dev.mysql.com/downloads/connector/j/5.1.html of main files)
Commons-dbutils-1.1.jar (queryrunner package http://commons.apache.org/downloads/download_dbutils.cgi required)
Instance:
1. Put the
Hierarchical Query
-- Auto-join: treats the same table as a different table using the table alias, and then uses the equivalent and non-equivalent join.
Self-connectionSQL> Selecte. ename | 'The Boss is '| D. ename
2 from emp e, EMP d
3 where E. Mgr
1. Tomcat official website Documentation Reference http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
2. test:
Add the following code to Tomcat context. xml: Generally, it is in the \ conf \ directory of the tomcat
First, you can use the following statement to view the existing database mode:Select name, log_mode from V $ database;You can also use the following statementArchive log list; (This method requires the as sysdba)
SQL> archive log listDatabase Log
Before Oracle 11g, we can create pfile from spfile or use pfile to create spfile. In Oracle 11g, spfile management is enhanced. You can use memory to create pfile and spfile.
Syntax:
Create pfile [= 'pfile _ name']
From {spfile [= 'spfile _
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