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));