MSSQL – replace empty string with null (if empty then null)

select nullif(name, '') from tbl_persons

Comments are closed.