select * from table1 where col1 like '%'''
就是把一个“'”,换成两个"''"

解决方案 »

  1.   

    "select * from table1 where col1 like" & "'%'" 或
    "select * from table1 where col1 like" & """"%""""
    你试试看
      

  2.   

    select * from 表名 where 字段名='" & 变量 & "' and 字段名2='" & 变量2 & "'"
      

  3.   

    一个SQL Server的问题。
    http://www.csdn.net/expert/topic/306/306256.shtm
      

  4.   

    用两个“'”取代一个“'”:
    select * from TableName where FieldName='" & "''other" & "'"
    将找出所有为“'other”记录。