晕死...string 要加起来的
改为:
strSQL="select count(cust_id) from bi_f_custatt,bi_d_date where "
+ " created_date_id=bi_d_date.date_id and year=2003 and month=9 and day=11";

解决方案 »

  1.   

    在jsp源码中,这实际上是一行,
    在这里发贴,由于显示不下,所以变成2行了
      

  2.   

    我也不知道你的报错在哪儿不过还是建议你,写涉及多表的sql语句,查询字段和条件字段最好明确表明 表和字段之间的关系
      

  3.   

    看报错信息,好像不是SQL的问题。你把你的SQL打印出来,看是怎样的。
      

  4.   

    strSQL="select count(cust_id) from bi_f_custatt,bi_d_date where 
    created_date_id=bi_d_date.date_id and year=2003 and month=9 and day=11";
      System.out.println(strSQL);
        sqlRst=sqlStmt.executeQuery(strSQL);
      

  5.   

    表和字段  bi_d_date.date_id写清楚点 试试
      

  6.   

    created_date_id是bi_f_custatt表里面的,还是都有??
      

  7.   

    自己再修改,例如:select count(bi_f_custatt.cust_id),bi_f_custatt.*,bi_d_date.* from bi_f_custatt a,bi_d_date b where a.created_date_id=b.date_id and a.year=2003 and a.month=9 and a.day=11";