Postgresql PSQLException错误位于或接近;(“第149位

Postgresql PSQLException错误位于或接近;(“第149位,postgresql,Postgresql,您好,我正试图在postgresql数据库中上载文件,但我遇到了一个错误:这是代码的堆栈跟踪..有人能告诉我哪里出了问题吗?我的查询是- String sql = "insert into project_details (document_type,file_type,file_upload,status,gid,userid,s_comment,s_date,s_time) values (?,?,?,?,?,?,?,current_date(),current_time());";

您好,我正试图在postgresql数据库中上载文件,但我遇到了一个错误:这是代码的堆栈跟踪..有人能告诉我哪里出了问题吗?我的查询是-

String sql = "insert into project_details (document_type,file_type,file_upload,status,gid,userid,s_comment,s_date,s_time) values (?,?,?,?,?,?,?,current_date(),current_time());";   
org.postgresql.util.PSQLException:错误:语法错误位于或接近“(”
职位:149
使用而不是
当前日期()/current\u时间()

使用而不是
current\u date()/current\u time()


当前日期和当前时间:


当前日期和当前时间:


共享查询你尝试运行共享查询你尝试运行我没有得到你想要传达的信息???@Roopam
current\u date
!=
current\u date()
我希望这很清楚:)我没有得到你想要传达的信息???@Roopam
current\u date
!=
current\u date()
我希望这很清楚:)
String sql = "insert into project_details (document_type,file_type,file_upload,status,gid,userid,s_comment,s_date,s_time) values (?,?,?,?,?,?,?,current_date,current_time);";   
insert into project_details 
   (document_type,file_type,file_upload,status,gid,userid,s_comment,s_date,s_time)
values 
   (?,?,?,?,?,?,?,current_date,current_time);