This question already has an answer here:
I want the query like below:
select * from tbl where LOWER(name) = $name
My current query is:
$resultArr = db_select('adbanner', 'n') ->fields('n') ->condition(LOWER('n.blog_title'), $page, '=') ->execute() ->fetchAll();
But it doesn't work.
How should I write this type of query?