Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

positioned updates and delete

This is a discussion on positioned updates and delete within the DB2 forums, part of the Databases category; Select * from gtable where col1 > 93 order by col1 for update of col2 . update gtable set col2= col2 * -1 where current of testcursor. when executing the ...

Go Back   Geeks Talk > Databases > DB2
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 11-05-2008
Junior Member
 
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
geek_mem is on a distinguished road
positioned updates and delete

Select * from gtable where col1 > 93 order by col1 for update of col2 .
update gtable set col2= col2 * -1 where current of testcursor.
when executing the update query i got the error of sqlcode = -510, error: the table designated by the cursor of the update or delete statement cannot be modified .
is it possible to update the current row pointed by the cursor for the select query with order by and for update of clause?

Last edited by geek_mem; 11-05-2008 at 05:45 AM.
Reply With Quote
The Following User Says Thank You to geek_mem For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 06-13-2009
Junior Member
 
Join Date: Jan 2008
Location: chennai
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
r.kothandaraman is on a distinguished road
Re: positioned updates and delete

yes we can do
Reply With Quote
Reply

  Geeks Talk > Databases > DB2

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
delete sarathi trichy Windows 1 11-04-2008 09:40 AM
AJAX Made Easy - Flash 10 Updates that Could Cripple Your Website Lokesh M AJAX & XML 0 10-10-2008 04:50 AM
Latest updates subscription service via RSS and Email admin Site News & Announcements 0 03-03-2008 03:01 PM
how to delete sarathi trichy Windows 2 11-06-2007 08:32 AM
Delete values in single a row without using DELETE keyword. Geek_Guest SQL 22 10-25-2007 06:50 AM


All times are GMT -4. The time now is 10:51 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved