问题:如何在 where 子句中使用当前时间

Flo*_*ora 3 mysql sql phpmyadmin

我想到了一个问题。是否有可能使用当前时间戳而不是 Where 子句中的选定日期?


SELECT this, that
FROM here
WHERE start>='2010-07-01'
Run Code Online (Sandbox Code Playgroud)

我以为会是…… 如:start='now()' 或 curdate() 或 curtime()。我发现的任何内容都是它们在 Select 子句中使用,但我需要在 Where 中使用它。

任何帮助深表感谢。植物群

Fla*_*yqi 6

SELECT this, that
FROM here
WHERE start >= NOW()
Run Code Online (Sandbox Code Playgroud)