Open ThanksSirAlex opened 2 months ago
No, you can't, the return value from your db server is last insert id, if you want to update other value, just fetch the record from the db server and update yourself.
You may just check the design of golang official pkg database/sql as well.
Your Question
I have two fields
And in db it is
Now after a record is created, I can't get the default value from db, Is there any way to get the value?
Expected answer