Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のDBで、日付フィールドが<現在の日付である行をPHPスクリプトを使用して削除したいと考えています。
$date('Y-m-j'); $result = mysql_query("DELETE * FROM festival WHERE day = '$date'");
同じ理由で、DELETE は機能しません。SELECT do を使用した同じクエリ。それはDELETEコマンドに関するいくつかの許可によるものですか?
SQL構文が正しくありません。*DELETEクエリは列リストを取得しませんが、(として)列リストを渡そうとしています。
*
クエリは次のようになります。
DELETE FROM festival WHERE date = '$date'