NO IMAGE

DECLARE @ShopCode NVARCHAR(20)
SET @ShopCode=’01058′
DECLARE @sql NVARCHAR(100)
SET @sql = ‘SELECT TOP 1 * FROM dbo.T_ShopBaseInfo WHERE
[email protected]
or @ShopCode IS NULL’

EXEC sp_executesql @sql,N’@ShopCode NVARCHAR(20)’,@ShopCode