我把他改成这样:strCommand = "select * from dbo.LilunInfo where 用户名 = '" + m_UserName + "'";
但是调试时还是一直都是显示是本来的语句select * from dbo.JiaoXueInfo where 。。。。
try
{ string strCommand = "";
strCommand = "select * from dbo.LilunInfo where 用户名 = '" + m_UserName + "'";
SqlDataAdapter dataCommand;
DataSet set = new DataSet();
dataCommand = SqlHelper.DataAdapter(BaseClass.ConnStr,CommandType.Text, strCommand);
dataCommand.Fill(set, "srcAdminInfo");
m_iRowNum1 = set.Tables[0].Rows.Count;
m_iColumnNum1 = set.Tables[0].Columns.Count;
if (m_iRowNum1 == 0)
{ return false; }
m_strAllInfoJiaoxue = new string[m_iRowNum1 * m_iColumnNum1];
for (int i = 0; i < m_iRowNum1; i++)
{
for (int j = 0; j < m_iColumnNum1; j++)
{
m_strAllInfoJiaoxue[j + i * m_iColumnNum1] = set.Tables[0].Rows[i][j].ToString();
}
}
胡子哥哥
烙印99