用字符串str1接收select语句   str1:='select *from arrange where date1 in('一','二','三')';
上面在in附近出错了~怎样改呢

解决方案 »

  1.   

    str1:='select *from arrange where date1 in('+QuotedStr('一')+','+QuotedStr('二')+','+QuotedStr('三')+')'; 
      

  2.   

    str1:='select * from arrange where date1 in(''一'',''二'',''三'')';这样子也可以吧。
      

  3.   

    str1:='select *from arrange where date1 in('+QuotedStr('一')+','+QuotedStr('二')+','+QuotedStr('三')+')'; str1:='select * from arrange where date1 in(''一'',''二'',''三'')'; 这个里面的“一”“二”“三”的类型没有确定,如果类型错的话是会出错的。