Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 如何在dbix:class中实现lower()(postresql)_Postgresql_Dbix Class - Fatal编程技术网

Postgresql 如何在dbix:class中实现lower()(postresql)

Postgresql 如何在dbix:class中实现lower()(postresql),postgresql,dbix-class,Postgresql,Dbix Class,我需要postgresql查询: 从文件中选择*,其中较低(应用程序周期)='2019-08-01 00:00:00+03' 它在dbix::class中的外观如何?包含一个这样的示例。在dbix::class中,它看起来像: $rs->search( \[ 'lower(app_period) = ?', $start ] ); 使用一些参数: $rs->search({ -and => [ agreement_id => $id, \[ 'lower(a

我需要postgresql查询:
从文件中选择*,其中较低(应用程序周期)='2019-08-01 00:00:00+03'


它在dbix::class中的外观如何?

包含一个这样的示例。

在dbix::class中,它看起来像:

$rs->search(
  \[ 'lower(app_period) = ?', $start ]
);
使用一些参数:

$rs->search({ -and => [
  agreement_id => $id,
  \[ 'lower(app_period) = ?', $start ]
]});