For the background on this, please see http://drupal.org/node/1067802.
Given all that, what situations exists where I might want to use db_select(), or should I be relying solely on db_query?
|
For the background on this, please see http://drupal.org/node/1067802. Given all that, what situations exists where I might want to use db_select(), or should I be relying solely on db_query?
| ||||
|
feedback
|
|
There are 5 reasons to use SelectQuery
If none of these reasons apply for a specific case, use db_query(). | |||||||||
feedback
|
|
The documentation about
| |||||||
feedback
|
|
In addition to what said from Berdir, I would say that in the case the query is altered from a function (even another function from the same module that is executing the query), then altering the object returned by
| ||||
feedback
|