我将如何组合这些查询?'deleted' 字段是指示主题何时被“删除”的时间戳。这个话题并没有真正被删除。如果它有一个实际的时间戳,我只是不显示它。
$topics = "SELECT id FROM topics WHERE deleted = '0000-00-00 00:00:00'";
$comments = "SELECT * FROM comments WHERE topic_id IN($topics)";
我将如何组合这些查询?'deleted' 字段是指示主题何时被“删除”的时间戳。这个话题并没有真正被删除。如果它有一个实际的时间戳,我只是不显示它。
$topics = "SELECT id FROM topics WHERE deleted = '0000-00-00 00:00:00'";
$comments = "SELECT * FROM comments WHERE topic_id IN($topics)";