Solved

How do I test if a block has a new record?

Posted on 2004-09-13
2
1,121 Views
Last Modified: 2013-12-12
I want to allow modifications to a certain key field in another block only on condition that the record in another block is a new record that so far has not been saved.  How do I test if this is so in PL/SQL?
0
Comment
Question by:desmondg
2 Comments
 
LVL 22

Accepted Solution

by:
Helena Marková earned 125 total points
ID: 12051599
IF Get_Record_Property(1,'another_block',STATUS) = 'NEW' THEN ...
0
 
LVL 8

Expert Comment

by:sapnam
ID: 12055433
Syntax of Get_record_property

GET_RECORD_PROPERTY(record_number, block_name, property);

So I think we should code this as

IF Get_Record_Property(:SYSTEM.CURSOR_RECORD,'another_block',STATUS) = 'NEW'

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question