如何打印sql语句?
$entities = $query
->entityCondition('entity_type', 'node')
->propertyCondition('type', "page")
->propertyCondition('uid', $user->uid)
->fieldCondition('field_item_r1', 'value', $title)
->addTag('debug')->execute();```
Please help me to print the sql statement发布于 2022-02-09 09:59:40
您可以使用(string) $query (如果可能的话,我更喜欢这种方法)或添加->addTag('debug')。
https://stackoverflow.com/questions/70364367
复制相似问题