PL/SQL learning notes-View

Source: Internet
Author: User

1. create or modify an attempt

Create or replace view v_xland asselect title, content from labor. xland;

Ii. delete a view

Drop view v_xland;

3. Update the data in the view.
If there is no limit to retrieving data in a view
If you want to update, delete, and create data for a view, the view must meet the following conditions:
1. The view cannot contain the keyword or clause of Union distinct group by order.
2. subqueries are not allowed in the view.
3. The view cannot contain grouping functions.
4. columns to be updated are not defined by column expressions.
5. All not null columns in the table are in the view.

4. Constraints and primary keys in the view
1: data that does not conform to the constraints of a column in the view will not appear in the view.
2: The primary key in the base table appears in the view and will become the primary key of the view.

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.