[英]Print SQL Statement for Drupal 7 entities
How can i print the sql statement for我如何打印 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
You can use (string) $query
(I prefer this method if possible) or add ->addTag('debug')
.您可以使用
(string) $query
(如果可能,我更喜欢这种方法)或添加->addTag('debug')
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.