SQL Flashcards
sublanguages, statements, data types
MySQL Command-Line Client
a text interface included in the MySQL Server download. MySQL Server returns an error code and description when an SQL statement is syntactically incorrect or the database cannot execute the statement.
Tuple
ordered collection of elements encolsed in parentheses; (a, b, c)
Types of Literals
Must be surrounded by single quotes or double quotes; ‘String’ or “String”
Types of Keywords
Words with special meaning; SELECT, FROM, WHERE
Data Definition Language (DDL)
a set of commands in a database that lets you CREATE, ALTER, or DROP structures like tables and databases.
Data Query Language
a set of commands in a database that allows you to ask questions and get information from the data.
SELECT is used to retrieve info from tables
Data Manipulation Language
a set of commands in a database that lets you work with the data itself—INSERT, UPDATE, or DELETE.
Data Control Language
a set of commands in a database used to manage permissions—deciding who can access or modify data.
Data Transaction Language
a set of commands in a database used to manage and control changes, ensuring that data stays accurate and consistent during multi-step operations, called transactions.
CREATE TABLE
creates a new table by specifying the table name, column names, and column data types.
DROP TABLE
deletes a table, along with all the table’s rows, from a database.
ALTER TABLE
adds, deletes, or modifies column on an existing table