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