Oracle thinking (2)

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

Summary of differences between primary keys, indexes, and pages of Oracle and MySQL

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 *

Implementation of comma-separated column-to-row in Oracle

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

Solution to Oracle user connection failure

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

Dedicated and efficient universal paging Control for Oracle Based on Hibernate paging Principle

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 ();

Oracle tree SQL query

Select typecode, lpad ('', 4 * level-1) | typenameFrom ajtypeStart with p_code is null connect by prior typecode = p_code; Result: 1 + City appearance and sanitation 15 + Lighting management 151 +

Oracle transparent gateway

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,

Usage of Oracle Database cursors in Stored Procedures

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

Create an auto-increment column in 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

An in-depth understanding of oracle-based locks

ORACLE locks have the following modes:0: none1: null2: Row-S Row sharing (RS): Share table lock3: Row-X (RX): used for Row Modification4: Share lock (S): blocks other DML operations5: S/Row-X dedicated shared rows (SRX): block other transaction

In-depth oracle partition index explanation

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

Differences between using Table aliases in delete and update in sqlserver and oracle

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

Oracle deletes an instance of an existing table

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

Test and comparison of oracle performance prompts Using Recursion

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

Oracle merge query transaction SQL function knowledge learning

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 11g2 Listener Configuration tutorial

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

Oracle declared cursor (with no field) rule application

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 to obtain the maximum Oracle date

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

Oracle ORA-01114, ORA-27067 error Solution

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:

How to Set NLS_LANG on the Oracle client

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

Total Pages: 2147 1 .... 1517 1518 1519 1520 1521 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.