Oracle Apex - 通过验证和交互式网格确定有效的非重叠日期
Oracle Apex - Date effective non-overlapping dates via validation and interactive grid
我正在尝试在 Oracle Apex 5.1 中对交互式可编辑网格的创建和更新进行验证。我右键单击 effective_start_date
列,然后选择“创建验证”。然后我从这里将 Type 设置为 Rows Returned 并执行 select 的想法,其中有其他行与正在创建或更新的当前行具有相同的日期范围。
为了测试,我刚刚输入了 select 1 from dual
,我以为这会一直出错,但是当我进行更改时,我从来没有收到错误。我哪里出错了,以这种方式甚至可能吗?
如随附的帮助文本中所述:
Rows returned
Passes if the SQL query returns one or more rows.
Fails if the SQL query returns no rows.
No Rows returned
Passes if the SQL query returns no rows.
Fails if the SQL query returns one or more rows.
使用select 1 from dual where 1=2
或切换到其他验证类型。
希望这到目前为止能回答您的问题。
我正在尝试在 Oracle Apex 5.1 中对交互式可编辑网格的创建和更新进行验证。我右键单击 effective_start_date
列,然后选择“创建验证”。然后我从这里将 Type 设置为 Rows Returned 并执行 select 的想法,其中有其他行与正在创建或更新的当前行具有相同的日期范围。
为了测试,我刚刚输入了 select 1 from dual
,我以为这会一直出错,但是当我进行更改时,我从来没有收到错误。我哪里出错了,以这种方式甚至可能吗?
如随附的帮助文本中所述:
Rows returned
Passes if the SQL query returns one or more rows.
Fails if the SQL query returns no rows.No Rows returned
Passes if the SQL query returns no rows.
Fails if the SQL query returns one or more rows.
使用select 1 from dual where 1=2
或切换到其他验证类型。
希望这到目前为止能回答您的问题。