how to perform updations on database using ResultSet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, May 14, 2005 02:24 PM

iam developing an application which performs updations on database using ResultSet.Iam implementing this application using "Statement Connection.createStatement(int Typeofscroll,int concur_type)
By passing ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE "


But if i run this iam getting EXCEPTION saying that u cannot perform updations on read-only resultset object

Plz.... give me a replay as early as possible...
thank u,

Re: how to perform updations on database using ResultSet

Posted By:   David_Thornton  
Posted On:   Monday, May 16, 2005 11:04 PM

In your select statement you need to use "FOR UPDATE".
About | Sitemap | Contact