I am a total newbie at DB's and I'm trying to insert data into the following tables:
Table Start
Table = users
Columns = id , username , password
Table = users_info
Columns = id , e-mail , address , logged , portrait , user_id
Table End
users_info.user_id is a foreign key linked to users.id.
I want to build a query that will insert data into (users_info table) based on information from (users table)... literal i.e.:
Insert portrait into users_info where user_id = users.id and username = JohnDoe
What is the syntax to get this going?
Thanks!!