string kiba518 = "select  * from user where userid= " + user +" and userpsd= " + psd;
提示FORM有问题

解决方案 »

  1.   

    FORM 还是from?不是一单词
      

  2.   

    user改成[user],加引号
    string kiba518="select * from [user] where userid='"+user+"' and userpsd='"+psd+"';
      

  3.   

    里面的几个user解释下都是什么?
       第一个是表?
       第二个是什么?
      psd 是什么?
      

  4.   


    string kiba518 = "select  * from user where userid= " + user +" and userpsd= '" + psd+"'"; 
    userpsd应该是字符型,得加引号
      

  5.   


    这个!!
    第二个显示是个用户ID的字符串
    psd应该代表密码,也是字符串
      

  6.   

    都2009年了。。还有这样写SQL的?