将存储过程应用于 SQL table 以分配 NULL 值

Applying stored procedures to SQL table to assign NULL values

我有一个很大的 SQL table,其中包含跨多个 columns/rows.

的“#N/A N/A”

如何应用存储过程将所有这些值转换为 NULL 值。

create table ##test2
(a1 varchar(200))
insert into ##test2 values('#N/A N/A'),('abc'),('#N/A N/A')
select  * from ##test2

create proc dbo.ex1 as
begin
set nocount on

update ##test2 set a1=null where a1='#N/A N/A'
end

select * from ##test2