three types of SQL keys
Auto Increment Field
often used primary key field
To let the AUTO_INCREMENT sequence start with another value, use the following SQL statement:
Syntax:
ALTER TABLE Table_name AUTO_INCREMENT=amount;
different possible inputs to tables
Adding a row
INSERT INTO Table_name VALUES (“value-1”, …”value-n”);
(values must match number and type of table definition, although NULL values can be included (no quotes))
Importing data in SQL
LOAD DATA LOCAL INFILE “sourcefilename”
INTO TABLE Table_name
FIELDS TERMINATED BY “delimiter” ;
INSERT INTO
used to insert new records in a table
INSERT & required matching
The list of values provided after the VALUE command must match columnList as follows:
SQL DEFAULT constraint
provides a default value
City varchar(255) DEFAULT 'Sandnes‘
Adding default values retrospectively:
ALTER TABLE tableName;
ALTER City SET DEFAULT ‘Sandnes’;
INSERT INTO … SELECT

DELETE FROM table_name;
Deletes all rows, but leaves table structure, attributes, and indexes intact