select * from A where taskId in (SELECT CAST(ID AS NVARCHAR(50))FROM B where IsDel=0)
1、convert(varchar(36),id)
2、cast(id as varchar(36))
select * from A where taskId in (SELECT CAST(ID AS NVARCHAR(50))FROM B where IsDel=0)
1、convert(varchar(36),id)
2、cast(id as varchar(36))