sql - Cannot update rows within table using select statement -
I have created a column within a table, from which I populate the table with data retrieved from another selection statement I want to do this
This is a statement that I am trying to use to populate a column:
update cc_file set sd_file_name = (c1_name file Select cd_file f, cvs3 c1 to c1.name F.sd_file_id = c1.file_id and (c1.file_id, c1.type) (select cvs3 to file_id, max), where type1 = 'PP' and type2 = 'XHMTML' by group file_id Ra)
When I run this statement in Oracle, then this error shows ORA-01427: Single-line subqury gives more than one line
Please tell me how can I do this so that the column updates.
Thanks
Try it
U Pdate cc_file set xml_file_name = (Select c1.name from cvs3c sd_file_name where f.sd_file_id = cc_file.file_id and (c) .file_id, c.type) (select file_id, max (type) from cvs3) Type 1 = 'PP' and Type2 = 'XHMTML' Math by file_id))
Comments
Post a Comment