EXEC('SELECT [FarmOrganiseUnitID],[FarmOrganiseUnitName]
FROM [FMDS_FarmOrganiseUnit]
where FarmOrganiseUnitType='FarmOrganiseUnitType0004'')
这条sql怎么改?
EXEC('SELECT [FarmOrganiseUnitID],[FarmOrganiseUnitName] FROM [FMDS_FarmOrganiseUnit] where FarmOrganiseUnitType=''FarmOrganiseUnitType0004''')
嵌套的单引号用双单引号转义