这是我的问题:
<?php
function removeBoard($boardID) {
global $db;
$sql = "DELETE FROM
boards,
board_threads,
board_posts
USING
boards
INNER JOIN
board_threads
INNER JOIN
board_posts
WHERE
boards.boardID = ". $boardID ." AND
board_threads.boardID = boards.boardID AND
board_posts.threadID = board_threads.threadID";
$db->query($sql);
}
?>
我有来自该帖子的代码&#34; delete rows from multiple tables&#34;但是,我的boardID
表中的board_posts
列只有threadID
列。