R
R
Roman Rakzin2015-07-23 19:53:14
MySQL
Roman Rakzin, 2015-07-23 19:53:14

How to find out the id of the just inserted row in golang+Mysql or golang+PostgreSQL?

How to find out the id of the just inserted row in golang+Mysql or golang+PostgreSQL?
You need to execute an insert query and then find out what the id of the new line is, what would work further.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pesenka1, 2015-07-23
@TwoRS

RETURNING ?

A
Alexander Melekhovets, 2015-07-23
@Blast

In mysql https://dev.mysql.com/doc/refman/5.0/en/informatio...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question