I have the next table structure:
Users:
columns: user_id, ...
Users_Skins:
columns: user_id, ...
I want that if a users registers (Users
is being populated), it will automatically add a row on Users_Skins with the user_id
of the Auto Increment
, to Users_Skins
.
Should I search for the max user_id
, and then insert a new row, or there is a better way (probably) ?
EDIT: I'm using SQL Server