SQL - Basics Flashcards
Flashcards for aid in learning the basics of SQL Language.
What does the DML query/update command SELECT do?
Extracts data from a database table.
What does the DML query/update command UPDATE do?
Updates data in a database table.
What does the DML query/update command DELETE do?
Deletes data from a database table.
What does the DML query/update command INSERT INTO do?
Inserts new data into a database table.
What does DML stand for?
Data Manipulation Language
What does the DDL query/update command CREATE TABLE do?
Creates a new database table.
What does the DDL query/update command ALTER TABLE do?
Alters (changes) a database table.
What does the DDL query/update command DROP TABLE do?
Deletes a database table.
What does the DDL query/update command CREATE INDEX do?
Creates and index (search key).
What does the DDL query/update command DROP INDEX do?
Deletes an index.
What does DDL stand for?
Data Definition Language
What does SQL stand for?
Structured Query Language
What is the syntax for using a select statement?
SELECT column_name(s) FROM table_name
How do you select multiple columns using the SELECT statement?
Separate the column names with commas. Ex:
SELECT column_name1, column_name2
FROM table_name
What is the syntax used to select all columns from a table?
SELECT * FROM table_name