Jump to content

enviar um comando em php de 30 select


elcsat

Recommended Posts

ola, gostaria de pedir uma ajuda, a melhor soluçao para enviar 30 select's juntos

por exemplo

select campo1, campo2 from tabela where nat='2' LIMIT 1;
select campo1, campo2 from tabela where nat='3' LIMIT 1;
select campo1, campo2 from tabela where nat='4' LIMIT 1;
.
.
.

ou

utilizar um inner join

mas acho que estas duas soluçoes é uma operaçao muito pesada conhecem mais alguma??

cumps

👍

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.