select tc11.* from tc11,tc14 where tc11.mldm=tc14.mldm and tc14.dcdm='-1' and tc11.mlbz<>'D';
不等于是<>

解决方案 »

  1.   

    这样也不对,错误是一样的,我的那条语句在orcal的sql_plus中运行正确。
      

  2.   

    rs = stmt.executeQuery("select tc11.* from tc11,tc14 where tc11.mldm=tc14.mldm and tc14.dcdm='-1' and tc11.mlbz!='D';");
      

  3.   

    不要分号
    rs = stmt.executeQuery("select tc11.* from tc11,tc14 where tc11.mldm=tc14.mldm and tc14.dcdm='-1' and tc11.mlbz!='D'");
      

  4.   

    都已经提示很明显了。就是你的string操作的问题。
      

  5.   

    rs = stmt.executeQuery("select tc11.* from tc11,tc14 where "+"tc11.mldm=tc14.mldm and tc14.dcdm='-1' and tc11.mlbz!='D'");
      

  6.   

    道理同下:
    String s = "123"
              +"456";
      

  7.   

    道理同下:
    String s = "123"
              +"456";