2
I have a table called CONTAS
with a column account_id
.
I have another table called PREMIO
with columns account_id
, id_premio
and itemqtd
I wanted a command where I inserted the id_premio
and itemqtd
but for the column called account_id
he insert all account_id
table CONTAS
because I want to give the same prize and quantity to all accounts registered at that time.
Opa thanks, but got the following error: #1054 - Column 'counts_id' unknown in 'field list' the column name is correct and exists in the table, but counts_id is the primary key of the table ACCOUNTS already id_prize is not primary key
– Rodrigo Az
There is something strange then in the structure that you went through... There is no way you edit your answer and by an image of the structure of each table?
– Matheus Ribeiro
I used fictitious names to explain but I’ll pass as is: Table of accounts ( called login ) - http://prntscr.com/ow8jfa Table awards
– Rodrigo Az
Check the edition of my answer, it is strange that this error quoted by you occurs if the field exists...
– Matheus Ribeiro
Thank you so much man for your attention help, it worked out the way I needed! Ps: the first attempt I typed a wrong character and did not see. rs
– Rodrigo Az