SQL INSERT Flashcards
1
Q
How do you add a row to a SQL table?
A
insert into “Table” (“column”)
values (‘whatever’)
2
Q
What is a tuple?
A
a list of values is referred to as a tuple.
3
Q
How do you add multiple rows to a SQL table at once?
A
insert into “Table” (“column”)
values (‘whatever’),
(‘whatever’),
(‘whatever’)
4
Q
How do you get back the row being inserted into a table without a separate select statement?
A
returning *
or specify what you want to return