Welcome Guest, Not a member yet? Register   Sign In
A more and less proper method for executing subselects with Active Record.
#1

[eluser]ShawnM[/eluser]
I'm seeing most people perform subselects by explicitly generating the SQL in a where statement (one example).

I looked into a method that enables the developer to create the subselect itself with active record and decided to use the _compile_select() method contained within the database drivers.

This has pros and cons, I go over them in this article on my site. http://shawnmccool.com/2009/09/18/using-...ubqueries/


Messages In This Thread
A more and less proper method for executing subselects with Active Record. - by El Forum - 09-22-2009, 03:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB