Select package_id result1 from package where package_id not in(Select package_id from package where package_id in(Select package_id from work_plan_sum));
Select package_id result2 from package where package_id not in(Select package_id from
Differences:
1. Primary keys. Oracle cannot implement auto-increment, and MySQL can implement auto-increment.
Oracle new sequence, seq_user_id.nextval
2. Index:
MySQL index starts from 0 and Oracle starts from 1.
3. Paging,
MySQL: Select *
Now, if a permission number is provided and you want to retrieve the user set with the permission, you need to match the given permission number among multiple permission numbers separated by commas. If you use like, one is less efficient, and the
After installing oracle11g, I want to enable the built-in SQL plus for learning, and then follow the prompts to use the Sys user to connect to the database. If I lose the SQL Plus, an error is prompted several times:
Error: the account is locked
Difficult to type. Let's look at flash.
Hibernate can implement paging query, for example:
Retrieve 2nd records from 100 records
Query q = session. createQuery ("from Cat as c ");Q. setFirstResult (20000 );Q. setMaxResults (100 );List l = q. list ();
1. Install the transparent gateway of oracle.
Select custom installation FOR Oracle Installation, then install transparent gateway, and then choose to install components for SQL Server.
Note that only MS-SQL Server 2000 is supported for Oracle 9i,
As the leader in the relational database market, Oracla plays an important role. Although the operation is not as convenient as SQL Server, its powerful functions attract a large number of followers. As a rookie in ORACLE, I occasionally use Oracle
Since Oracle was used in the project for the first time. Ah, I am ashamed to be troubled by the problem of an auto-increment column for a long time. This is easy to use without SQL Server. Oracle needs to use auto-incrementing SEQUENCE and trigger.
1
A table can be partitioned by range, hash, or list. After the table is partitioned, the indexes on the table are different from those on the normal table. oracle classifies the indexes on the partition table into two types:
Local and global
Yesterday, we found that the data analysis results in the program were incorrect. After the analysis was performed again, the original data was still there and the fields with values were accumulated. The heart said, No, It was analyzed only after
SQL code
Copy codeThe Code is 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_v1
When you use start with connect by nocycle prior
When performing recursive data search, the performance of the following two sections of code must be significantly different. For more information, please note that the code can be directly summarized
Table query:
Merge query: Use the union keyword to remove duplicate rows that meet the condition.
Copy codeThe Code is as follows: select ename, sal, job from emp where sal> 2500 union select ename, sal, job from emp where job = 'manager ';
Union
Oracle provides two listener service registration methods: Dynamic and Static. The status of the dynamically registered service in lsnrctl status is ready, and the static service is unknown.
In versions earlier than 11g2, the listener is configured
During development, a cursor containing a table that does not have fields may be declared to solve special problems. This article will introduce such problems in detail. For more information, see
Data. * is a table, and then the fields in other
How can I get the maximum Date of oracle in the development application? This article will provide such a method for obtaining information. For more information, see
SQL code
Copy codeThe Code is as follows: -- Created on 2010/06/08 by NAN
Today a friend asked the following case, ORA-01114, ORA-27067 and OSD-04026 errors at the same time:
* ** Action name :() 09:31:00. 762* ** Module name :( JDBC Thin Client) 09:31:00. 762* ** Service name :( SYS $ USERS) 09:31:00. 762* ** Session id:
Oracle client NLS_LANG settings
OracleWindowsMicrosoftUnixBash1. Composition of the NLS_LANG ParameterThe NLS_LANG parameter consists of the following parts:NLS_LANG = _.
The meanings of NLS_LANG are as follows:LANGUAGE:-Oracle message
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