Link to home
Create AccountLog in
Avatar of Anandhi1
Anandhi1

asked on

Sql query to update a column without overwriting the existing data.

How do we update a column in SQL database without overwriting the existing data?
ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
update table1
set field1 = 'whatever' where field1 is null

only writes into blank field1