C# 关键字 'from' 附近有语法错误(用SQL2008,C#代码,)
stringsqlStr="selsectuserPasswordfromtbl_UserwhereuserName='"+txtUserName.Text.Trim()...
string sqlStr = "selsect userPassword from tbl_User where userName='"+txtUserName.Text.Trim()+"'";
DataSet ds = new DataSet();
CDataBase.conn.ConnectionString = CDataBase.connStr;
CDataBase.conn.Open();
SqlDataAdapter adapter = new SqlDataAdapter(sqlStr, CDataBase.conn);
adapter.Fill(ds); 展开
DataSet ds = new DataSet();
CDataBase.conn.ConnectionString = CDataBase.connStr;
CDataBase.conn.Open();
SqlDataAdapter adapter = new SqlDataAdapter(sqlStr, CDataBase.conn);
adapter.Fill(ds); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询