str1:='select * from kongtiao where country = '''+德国+'''';
    sql.add(str1);

解决方案 »

  1.   

    str1:='select * from kongtiao where country = ''''+德国+''''';
       sql.clear;
        sql.add(str1);
      

  2.   

    语句没问题
    str1:='select * from kongtiao where country = '''+德国+'''';
    sql.clear;
        sql.add(str1);
      

  3.   

    对不起
    有问题请改为:
    str1:='select * from kongtiao where country = '''+'德国'+'''';
    sql.clear;
        sql.add(str1);
      

  4.   

    如果country 是字符串类型,没有问题,建议写成:
    str1:='select * from kongtiao where country = '+#39+'德国'+#39;
       sql.clear;
        sql.add(str1);
      

  5.   

    应改为:
    str1:='select * from kongtiao where country = '''+'德国'+'''';
        sql.add(str1);
      

  6.   

    sql.add(QuoteStr(select * from kongtiao where country ='德国'))
      

  7.   

    strl:='select * from kongtiao where country=" '+'德国'+' " ';
     sql.add)strl);