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.
この SQL クエリが動作後にクエリをクリアしない理由 (変数内のテーブル名$datetoday) を知っている人はいますか? 今 $datetoday = 300313
$datetoday
mysql_query('TRUNCATE TABLE `data`.`".$datetoday."`');
編集:エラーは:
Could not clear table: Table 'data.".$datetoday."' doesn't exist
への変更:
mysql_query('TRUNCATE TABLE `data`.`' . $datetoday . '`');
クエリを囲んでいますが、 around'を使用しています。"$datetoday
'
"