View previous topic :: View next topic
|
Author |
Message |
manojtyagi_09
New User
Joined: 30 Oct 2006 Posts: 10
|
|
|
|
Hi All,
I have a requirement to Add fetch only statement to cursor to increase the performance.
Few of my Queries are
1. Cursor has Simple select query and "no such statment as FOR UPDATE of " etc . Also program in not performing Update/Delete/insert on table.
2. Cursor has Simple select query and "no such statment as FOR UPDATE of " etc . Program in doing Update/Delete/insert on table in some paragraph in table with simple Query (Does not contain any statement as FOR CURRENT OF CURSOR-NAME"
Please inform whether FOR FETCH ONLY can be added to cursor or not. Also if there is any other scenario for not adding the stattement please inform. |
|
Back to top |
|
|
Cristopher
New User
Joined: 31 Jul 2008 Posts: 53 Location: NY
|
|
|
|
Yes, you can use FOR FETCH ONLY clause in your cursor to make the returned columns read only.
As the result table from a SELECT on a view defined as read-only is also read only ,you can use this clause but it has no effect.
Cris |
|
Back to top |
|
|
ashimer
Active Member
Joined: 13 Feb 2004 Posts: 551 Location: Bangalore
|
|
|
|
In addition all cursors defined on 2 or more tables are by default treated as READ ONLY .... |
|
Back to top |
|
|
|