首页 文章

在symfony3下使用Oracle的日期

提问于
浏览
0

我们如何将symfony3下的日期与oracle数据库进行比较?

$q = $this->createQueryBuilder("u")->leftJoin("u.ru", "r")
  ->leftJoin("u.emp", "e")
  ->where("(r.a = 2 or r.a =4) and u.dat > :first and u.dat < :last and e.m=:m")
  ->orderBy("r.id")
  ->setParameter("matricule", $personne->getMatricule())
  ->setParameter("first", $first)
  ->setParameter("last", $last);
return $q->getQuery()->getResult();

但这不起作用 . 我有这个错误

常规错误:1861 OCIStmtExecute:ORA-01861:literal与格式字符串不匹配(ext \ pdo_oci \ oci_statement.c:148)

1 回答

相关问题