updating a particular value in a record. [message #19592] |
Sun, 31 March 2002 10:55 |
ash
Messages: 43 Registered: February 2001
|
Member |
|
|
hi.
how can we update a particular value in a record. the problem with using the WHERE clause is as follows:
the table that i have has identical values in all the fields(columns) in all the records(rows). for eg. the table looks like this:
TABLE_A
cloumnA columnB columnC
free free free
free free free
free free free
free free free
free free free
now i just wanst to fill in some value say 'abc' in the first column of the first record.
how can i do that?
|
|
|
|
|
Re: updating a particular value in a record. [message #19634 is a reply to message #19592] |
Tue, 02 April 2002 01:41 |
Srihari
Messages: 22 Registered: October 2000
|
Junior Member |
|
|
Hi
Try this query! If the records in ur table is like this TABLE_A
cloumnA columnB columnC
free free free
free free free
free free free
free free free
free free free
and U want to change nth row columnB value to 'costly'
then
update TABLE_A set columnB='costly' where rowid =
(select max(rowid) from TABLE_A where rownum <= n)
here if n=3 then Third row columnB value will be changed
Hope this is useful
Bye
Srihari
|
|
|