select password,Id from u_users where (LoginName='{0}' or handphone='{0}' or eMail='{0}')", userName)麻烦各位帮忙看看where条件中userName代表什么意思?

解决方案 »

  1.   

    最后边的一部分,不是sql语句吧
      

  2.   

    确定检索条件的一个字段,不过你这个好像不是mssql的用法
      

  3.   

    从语句来看,你这是前端获取的,并且还没拿全。这个username应该是前端传入的参数。
      

  4.   

    “select password,Id from u_users where (LoginName='{0}' or handphone='{0}' or eMail='{0}')", userName)”似乎是程序平台串接的语句,类似C中的printf中%0,username是程序内置变量,直接传参给{0}
      

  5.   

    select 前面难道有string.format????