-5

如何使用 Inner-Join 转换此查询:

db_query("select max(field_date_and_time_value2) as last_time 
    from field_data_field_date_and_time 
    where (field_date_and_time_value2 > '".$today."') 
    AND (".$node->uid." = (select uid from node where nid = " . $node->nid ."))");
4

1 回答 1

0
from field_data_field_date_and_time fdt
JOIN node on fdt.<field> = node.uid

如果没有看到您的架构,很难说出 FK 在这里是什么。

于 2013-07-15T14:25:32.013 回答