Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing 1 Cursor Against Another

Status
Not open for further replies.

vimy

Programmer
Jun 5, 2000
8
0
0
CA
Hello,

I'm a little new and pl/sql and I am wondering if there is a way to compare the current record of a cursor to the current record of another cursor.

If this is not possible, is there an easy way to compare a large number of fields without doing it manually?

Thank in advance
 

You can do a minus on the SQL statements of those cursors:

SELECT *
FROM table1
where ...
MINUS
SELECT *
FROM table2
where ....;

(Assuming all fields of these two tables are the same, if not, you'll have to do it manually)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top