0% found this document useful (0 votes)
20 views12 pages

SQL Keywords

The document outlines SQL keywords such as ADD, CREATE, and ALTER, emphasizing that these reserved words cannot be used as variable names or object names. It provides examples of SQL commands that utilize these keywords, specifically in the context of Data Definition Language. The document reinforces the importance of avoiding the use of keywords when naming databases or objects.

Uploaded by

saptakarma05
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views12 pages

SQL Keywords

The document outlines SQL keywords such as ADD, CREATE, and ALTER, emphasizing that these reserved words cannot be used as variable names or object names. It provides examples of SQL commands that utilize these keywords, specifically in the context of Data Definition Language. The document reinforces the importance of avoiding the use of keywords when naming databases or objects.

Uploaded by

saptakarma05
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

SQL Keywords

Keywords

Keywords:
- ADD
Keywords

Keywords:
- ADD
- CREATE
- ALTER
- etc.
Keywords

Keywords:
- ADD
- CREATE
- ALTER
- etc.

KEYWORDS IN SQL CANNOT BE VARIABLE NAMES!


Keywords

Keywords:
- ADD
- CREATE
- ALTER
- etc.

KEYWORDS IN SQL CANNOT BE VARIABLE NAMES!


objects or databases cannot have names that coincide with SQL keywords
Keywords

CREATE, ALTER:
Keywords

CREATE, ALTER:

CREATE TABLE alter (purchase_number INT);

alter
purchase_number
Data Definition Language

ADD
Data Definition Language

ADD

ALTER TABLE sales


ADD COLUMN date_of_purchase DATE;

sales
purchase_number date_of_purchase
Data Definition Language

ADD, ALTER

ALTER TABLE sales


ADD COLUMN date_of_purchase DATE;

sales
purchase_number date_of_purchase
Keywords

Keywords = reserved words


Keywords

Keywords = reserved words


they cannot be used when naming objects

You might also like