SYSTEM.LAST_QUERY

SYSTEM.LAST_QUERY

Represents the query SELECT statement that Oracle Forms most recently used to populate a block during the current Run form session. The value is always a character string.

SYSTEM.LAST_QUERY


从上面的Last_Query定义的解读:
1.SYSTEM.LAST_QUERY返回的只能是查询(Select)的SQL语句,不会有Update,Insert,Delete SQL语句;
2."The current Run form session"说明不同的Form,SYSTEM.LAST_QUERY可以有不同的值的,不会混淆;
3."Used to populate a block"说明只有查询类的Block,才能查出值来。所以不要指望,执行一个LOV后,SYSTEM.LAST_QUERY返回一个查询语句


System.Last_Query的业务处理的逻辑代码写在框架APPCORE.pld