select * from t_table t where NOT EXISTS (select * from t_table w where t.keyword = w.keyword and w.posttime > t.posttime)这句话又怎么错拉?

解决方案 »

  1.   

    select * from t_table,t 
    表之间要有逗号
      

  2.   

    第一句:
    select * from t_table where NOT EXISTS (select * from t_table where id=1)
    没有错后面的子句
    select * from t_table w where t.keyword = w.keyword and w.posttime > t.posttime
    表t是不是也应该在from后面有
    select * from t_table,w,t
      

  3.   

    ERROR 1064: You have an error in your SQL syntax near 'EXISTS (select * from t_u
    sers where id=1)' at line 1
      

  4.   

    执行的是:
    select * from t_users where NOT EXISTS (select * from t_users where id=1)
      

  5.   

    是不是这样呢
    select * from t_users where 字段名 NOT EXISTS (select 字段名 from t_users where id=1)
      

  6.   

    你用的是MYSQL吗?不支持嵌套啦
      

  7.   

    mysql4不支持,貌似mysql5可以了