syntax of update stmt with literals in subquery [message #340547] |
Wed, 13 August 2008 04:37 |
manoj339
Messages: 9 Registered: April 2007
|
Junior Member |
|
|
I want to use below update stmt,but need the correct syntax for the below subquery.Pl suggest the correct syntax if I want to use hard coded values of the 3 columns in the subquery.
update trd_arch_partition_ref
set archive_dt = to_date('20080808','yyyymmdd')
where (sys_id,src_sys_asgn_ref_no,br_cod) in (
'abc',
'def'
)
|
|
|
|
|
|
Re: syntax of update stmt with literals in subquery [message #340587 is a reply to message #340547] |
Wed, 13 August 2008 06:17 |
manoj339
Messages: 9 Registered: April 2007
|
Junior Member |
|
|
Thanks to all those who replied.The solution mentioned has worked out.
Your soln:
update trd_arch_partition_ref
set archive_dt = to_date('20080808','yyyymmdd')
where (sys_id,src_sys_asgn_ref_no,br_cod) in (
('a',b','c'),
('d','e','f'),
('x','y','z')
)
|
|
|
|