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.
そのような条件を記述するよりエレガントな方法はありますか?
WHERE date<'".($date+1)."-07-01'
に似たもの
WHERE date<'{($date+1)}-07-01'
$date = 2013; $truedate = ($date + 1) . "-07-01"; $preparedDb = new DB; $preparedDb->prepare("SELECT * FROM T1 WHERE date < ?") ->execute(array($truedate));