sql-insert Flashcards
1
Q
How do you add a row to a SQL table?
A
Using the “insert into” statement, the table’s name within double quotes, the column’s names within double quotes and parentheses.
Then using the “values” clause, with the values per column within double quote, in respective order, and parentheses per row values.
2
Q
What is a tuple?
A
List of values.
3
Q
How do you add multiple rows to a SQL table at once?
A
By separating the tuples using commas.
4
Q
How do you get back the row being inserted into a table without a separate select statement?
A
Using “returning” clause followed by the asterisk operator.