Basics Flashcards
field
column
record
row
Data Definition Language (DDL)
allow you to create or modify your database structure
Data Manipulation Language (DML)
used to manipulate data stored inside your database
Data Query Language (DQL)
used for querying or selecting a subset of data from a database
Data Control Language (DCL)
used for controlling access to data within a database, commonly used for granting user privileges
Transaction Control Commands
used for managing groups of statements as a unit of work
varchar
variable number of characters
char
fixed length characters
decimal
decimal numbers
int
integer values
date
date data type
table creation syntax (basic)
CREATE TABLE [tableName]
( [field1] [data-type],
[field2] [data-type]);
insert data into table (basic)
INSERT INTO [TABLE tableName]
VALUES (‘Value1’, ‘Value2’, …);
simple SQL query
SELECT [selection] FROM [TABLE name]