queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(database1, "select * from chinese where name="+jText3, null, true,Load.ALL));
-->
queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(database1, "select * from [chinese] where [name]='"+jText3+"'", null, true,Load.ALL));

解决方案 »

  1.   

    "select * from chinese where name = '"+jText3+"'"加个引号!!
      

  2.   

    queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(database1, "select * from chinese where name='"+jText3+"' union select * from maths where name='"+jText3+"' union select * from English where name='"+jText3+ "' union select * from IT where name='"+jText3"'", null, true, Load.ALL));我的程序是这样的,可是不对,他让我加个括号。为什么?