标签:
$myId = 5;
$result = db_select(‘table‘, ‘t‘)
->fields(‘t‘)
->condition(‘id‘, $myId, ‘=‘)
->execute()
->fetchAssoc();
?>
the above is equivelent to:
SELECT t.* FROM table as t WHERE t.id = 7
================
http://stackoverflow.com/questions/19683409/drupal-query-builder-return-all-fields
标签:
原文地址:http://www.cnblogs.com/qinqiu/p/4476895.html