相关疑难解决方法(0)

date_sub ok用mysql,ko用postgresql

这个与mySQL一起使用的查询不适用于Postgresql:

select ... from ... where (id = ... and ( h > date_sub(now(), INTERVAL 30 MINUTE)))  
Run Code Online (Sandbox Code Playgroud)

错误是:

Query failed: ERREUR:  erreur de syntaxe sur ou près de « 30 »  
Run Code Online (Sandbox Code Playgroud)

有任何想法吗 ?

sql postgresql

6
推荐指数
1
解决办法
8487
查看次数

标签 统计

postgresql ×1

sql ×1