Hello.I have a table named useracclimits and i want to add values from another table named puser. I get my values from the puser table like this :select id from puserwhere activeacceptancerange=1and expiredate is null--- kai na do mono tous iusersand name like 'iuser%'
Now i want to add the id to the useracclimits table + another value (18)The useracclimits table has a id, userid(where i want to add the id of the puser table) and a acclimitid id that will always be 18.I'm thinking ofinsert into useracclimits values ((select id from puserwhere activeacceptancerange=1and expiredate is null--- kai na do mono tous iusersand name like 'iuser%'),18)
But will it work and since i have a primary key do i need another value? (pk value, the select id from puser stuff,18)?Can you help me?Thanks.