本文整理汇总了PHP中Driver::current_timestamp方法的典型用法代码示例。如果您正苦于以下问题:PHP Driver::current_timestamp方法的具体用法?PHP Driver::current_timestamp怎么用?PHP Driver::current_timestamp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Driver
的用法示例。
在下文中一共展示了Driver::current_timestamp方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
namespace TORM;
Driver::$name = "postgresql";
Driver::$primary_key_behaviour = Driver::PRIMARY_KEY_SEQUENCE;
Driver::$limit_behaviour = Driver::LIMIT_APPEND;
Driver::$current_timestamp = "now()";
Driver::$numeric_column = "numeric";
示例2: from
<?php
namespace TORM;
Driver::$name = "oracle";
Driver::$primary_key_behaviour = Driver::PRIMARY_KEY_SEQUENCE;
Driver::$limit_behaviour = Driver::LIMIT_AROUND;
Driver::$limit_query = "select * from (%query%) where rownum<=%limit%";
Driver::$pagination_query = "select * from (select a.*, rownum as rnum from (%query%) a where rownum <= %to%) where rnum >= %from%";
Driver::$pagination_subquery = true;
Driver::$numeric_column = "number";
Driver::$current_timestamp = "sysdate";
Driver::$escape_char = "";
Driver::$last_id_supported = false;