MySQL 5.1 ใƒชใƒ•ใ‚กใƒฌใƒณใ‚นใƒžใƒ‹ใƒฅใ‚ขใƒซ :: A Frequently Asked Questions About MySQL 5.1 :: A.7 MySQL 5.1 FAQ โ€” Views
« A.6 MySQL 5.1 FAQ โ€” Stored Routines, Triggers, and Replication

A.8 MySQL 5.0 FAQ โ€” INFORMATION_SCHEMA »
Section Navigation      [Toggle]
  • A Frequently Asked Questions About MySQL 5.1
  • A.1 MySQL 5.1 FAQ โ€” General
  • A.2 MySQL 5.1 FAQ โ€” Storage Engines
  • A.3 MySQL 5.1 FAQ โ€” Server SQL Mode
  • A.4 MySQL 5.1 FAQ โ€” Stored Procedures
  • A.5 MySQL 5.1 FAQ โ€” Triggers
  • A.6 MySQL 5.1 FAQ โ€” Stored Routines, Triggers, and Replication
  • A.7 MySQL 5.1 FAQ โ€” Views
  • A.8 MySQL 5.0 FAQ โ€” INFORMATION_SCHEMA
  • A.9 MySQL 5.1 FAQ โ€” Migration
  • A.10 MySQL 5.1 FAQ โ€” Security
  • A.11 MySQL 5.1 FAQ โ€” MySQL Cluster
  • A.12 MySQL 5.1 FAQ โ€” MySQL Chinese, Japanese, and Korean Character Sets
  • A.13 MySQL 5.1 FAQ โ€” Connectors & APIs

A.7. MySQL 5.1 FAQ โ€” Views

Questions

  • 26.7.1: Where can I find documentation covering MySQL Views?

  • 26.7.2: Is there a discussion forum for MySQL Views?

  • 26.7.3: What happens to a view if an underlying table is dropped or renamed?

  • 26.7.4: Does MySQL 5.1 have table snapshots?

  • 26.7.5: Does MySQL 5.1 have materialized views?

  • 26.7.6: Can you insert into views that are based on joins?

Questions and Answers

26.7.1: Where can I find documentation covering MySQL Views?

See ็ซ ย 20. ใƒ“ใƒฅใƒผ.

26.7.2: Is there a discussion forum for MySQL Views?

Yes. See http://forums.mysql.com/list.php?100

26.7.3: What happens to a view if an underlying table is dropped or renamed?

After a view has been created, it is possible to drop or alter a table or view to which the definition refers. To check a view definition for problems of this kind, use the CHECK TABLE statement. (See ้ …12.5.2.3. ใ€ŒCHECK TABLE ๆง‹ๆ–‡ใ€.)

26.7.4: Does MySQL 5.1 have table snapshots?

No.

26.7.5: Does MySQL 5.1 have materialized views?

No.

26.7.6: Can you insert into views that are based on joins?

It is possible, provided that your INSERT statement has a column list that makes it clear there's only one table involved.

You cannot insert into multiple tables with a single insert on a view.

Copyright ยฉ 1997, 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices
Top / Previous / Next / Up / Table of Contents
© 2010, Oracle Corporation and/or its affiliates