Solved

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

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle RAC 12c 8 87
How to connect SQL Server from my Oracle database? 11 132
Database Design Dilemma 6 58
Oracle 12c Default Isolation Level 17 41
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to recover a database from a user managed backup

831 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