SQL Server: 字符串中使用单引号
2016-09-28
exec('delete from '+@TableName+ ' where ImportTime = '''+@Imp_Date+'''') end
在字符串中两个单引号等于一个单引号 但是要注意字符串本身就需要一对单引号括起来
exec('delete from '+@TableName+ ' where ImportTime = '''+@Imp_Date+'''') end
在字符串中两个单引号等于一个单引号 但是要注意字符串本身就需要一对单引号括起来