Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

return insert results in POSTGRESQL

# to select specific columns
INSERT INTO users (firstname, lastname) VALUES ('Joe', 'Cool') RETURNING id, firstname;
# to return every column
INSERT INTO users (firstname, lastname) VALUES ('Joe', 'Cool') RETURNING *;
 
PREVIOUS NEXT
Tagged: #return #insert #results #POSTGRESQL
ADD COMMENT
Topic
Name
3+3 =