Anonymous

Not logged in

  • Log in
SQLZoo

DROP a table

From SQLZoo

Namespaces

  • Page
  • Discussion

More

  • More

Page actions

  • Read
  • View source
  • History

DROP an unwanted table

schema:scott

Naturally, all of the data in the table is lost when the table is dropped.

Foreign Key references can cause problems.

CREATE TABLE t_test
 (a INTEGER NOT NULL PRIMARY KEY
 ,b VARCHAR(10)
 )
DROP TABLE t_test
CREATE and DROP Operations
CREATE a new table
DROP a table
Composite primary key
CREATE a foreign key
CREATE a VIEW
Autonumber fields
ALTER TABLE ... ADD COLUMN
ALTER TABLE ... DROP COLUMN
ALTER TABLE ... ADD constraint
CREATE TABLE problems: Invalid column name.
CREATE TABLE problems: Insufficient privileges.
CREATE TABLE problems: Table already exists.
DROP TABLE problems: Foreign key references.
CREATE TABLE problems: Foreign key references.
Rename column
Retrieved from "https://noads.sqlzoo.net/w/index.php?title=DROP_a_table&oldid=1425"
Category:
  • Pages using deprecated source tags

Navigation

  • SELECT basics
  • quiz
  • SELECT from world
  • quiz
  • SELECT from nobel
  • quiz
  • SELECT in SELECT
  • quiz
  • SUM and COUNT
  • quiz
  • JOIN
  • quiz
  • More JOIN
  • quiz
  • Using NULL
  • quiz
  • Self JOIN
  • quiz

Reference

  • NoSQL zoo
  • SELECT
  • Functions
  • SELECT .. WHERE
  • SELECT .. GROUP BY
  • SELECT .. JOIN
  • SELECT .. SELECT
  • INSERT .. VALUES
  • INSERT .. SELECT
  • UPDATE
  • DELETE
  • CREATE TABLE
  • CREATE VIEW
  • CREATE INDEX
  • DROP
  • ALTER
  • UNION
  • LEFT JOIN
  • NULL

Wiki tools

Wiki tools

    Page tools

    Page tools

      User page tools

        More

        • What links here
        • Related changes
        • Printable version
        • Permanent link
        • Page information
        • Page logs

        Categories

        Categories

        • Pages using deprecated source tags
        • Powered by MediaWiki
        • This page was last modified on 17 July 2012, at 09:14.
        • Privacy policy
        • About SQLZoo
        • Disclaimers