Solved

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

Posted on 2004-09-13
2
1,097 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.

Join & Write a Comment

Suggested Solutions

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now