dimanche 22 janvier 2017

laravel about inner join and subquery

ok, now ,I want get sql just like:

select field1,field2,field3  from table1  

inner join  

(select id from table1 where field4=$field4 limit 100, 20)
as temp using(id)

how can I get this by laravel 5.1?

thank you ~



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire