update TABLE1 set COLUMN2 = 'X' where COLUMN1= 'Y'
If the columns are defined as numeric data types, then omit the single quotes. In order to ensure that only one row is updated, COLUMN1 would have to contain unique values (preferably have a unique index or PK defined on the column).