SQL CREATE ALTER DROP VIEW: Difference between revisions
Jump to navigation
Jump to search
(→CREATE) |
(→CREATE) |
||
Line 6: | Line 6: | ||
=<tt>CREATE</tt>= | =<tt>CREATE</tt>= | ||
<syntaxhighlight lang='sql'> | <syntaxhighlight lang='sql'> | ||
CREATE | CREATE VIEW cust_view AS SELECT id, name, address FROM customer; | ||
SELECT id, name, address FROM customer; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
:{| class="wikitable" style="text-align: left;" | :{| class="wikitable" style="text-align: left;" |
Revision as of 17:06, 23 May 2024
Internal
Overview
CREATE
CREATE VIEW cust_view AS SELECT id, name, address FROM customer;
ALTER
ALTER TABLE person [...]
Add/Remove a Column
ALTER TABLE person ADD COLUMN birthday DATE;
DROP
DROP TABLE person [...]