我的SQL语句是:"UPDATE user_info SET id= 2 , userId= 2 , passWord= 2 , name= 2 , telephone= 3 , emailNumber= 3 , userType= '4' WHERE id= 2";
为什么会出现这个问题:org.postgresql.util.PSQLException: ERROR: column "userid" of relation "user_info" does not exist 
谢谢指教

解决方案 »

  1.   

    你SQL写的有问题UPDATE user_info SET id= 2 , userId= 2 , passWord= 2 , name= 2 , telephone= 3 , emailNumber= 3 , userType= '4' WHERE id= 2 ,把你的set 中的id=2删除掉,而且你的userid应该没有在你的user_info表中吧,不然不会说column "userid" of relation "user_info" does not exist 
      

  2.   

    人家都说了在关系表user_info中,列userId不存在
      

  3.   

    人家都说了在关系表user_info中,列userId不存在
    我数据库中有啊