select ''''''--''select ''''--'
select ''--空格 

解决方案 »

  1.   

    不好意思,说错了.在sql语句中,两个单引号代表一个单引号字符,举个例子,你想将  here is an 'example' 插入表中, 写sql语句时就要写成 insert into table (column) values ('here is an ''example''')
      

  2.   

    學習
    在sql語句中要想得到一個單引號,必須用兩個單引號
    如果是sql中字符串連接就需要4個單引號來為一個字符串中加一個單引號。
      

  3.   

    还是有些不明白,set @sql = 'select col ='''
    +replace(replace(@s,'''',''''''),',','''union all select ''')+''''现在还是分不清select前面的单引号和哪个单引号对应,以及最后四个单引号是起什么作用 replace(@s,'''','''''')有什么用