CREATE and DROP Reference
From SQLZOO
Revision as of 09:28, 10 July 2012 by
Marek
(
Talk
|
contribs
)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to:
navigation
,
search
How to create tables, indexes, views and other things. How to get rid of them. How to change them.
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
Personal tools
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
Actions
Search
Reference
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
Toolbox
What links here
Related changes
Special pages
Printable version
Permanent link
Google AdSense