0
I have this query MtDispositivo.where("id_conta = ?", "28")
that returns to me all accounts that present the ID_CONTA = 28.
Below I have these other Querys that return me same result that are accounts with ID_CONTA
such.
MtDispositivo.where("id_conta = ?", "29")
MtDispositivo.where("id_conta = ?", "30")
MtDispositivo.where("id_conta = ?", "36")
I need to do a Query with all these IDS_CONTAS
return all accounts containing only these IDS to me: 28, 29, 30 and 36.
And then I need to add a Download session, where these accounts will be downloaded in Excel.
Can you help me? Understand the question?
I have a device called Mtdevice where it stores all accounts.
I need to query these ID_CONTAS: 28, 29, 30 e 36
that return are accounts.
When I did MtDispositivo.where("id_conta = ?", "29")
it returns only the accounts that contain ID_CONTA 29
.
Instead of going from one to one need a Query where I can get all the results of various IDS at once.
These are IDS: 28, 29, 30 and 36.
is using what technologies?
– Maicon Carraro
I’m using Ruby on Rails. I need to get these ID_CONTA through the Linux terminal. Then create a code snippet where clients can download these IDS in Excel.
– Robson Argolo