sql-insert Flashcards
1
Q
How do you add a row to a SQL table?
A
Insert into “table name” (“list”, “of”, “columns”)
Values (‘list’, ‘of’, ‘values’)
(for values: text in single quotes, numbers no quotes)
2
Q
What is a tuple?
A
A tuple is a list of values
3
Q
How do you add multiple rows to a SQL table at once?
A
Data rows can be batch inserted into a database table by specifying more than one tuple of values, separated by commas
4
Q
How do you get back the row being inserted into a table without a separate select statement?
A
returning followed by * or “column name(s)”