public DataTable GetData(string sqlwhere) { DataTable table = null; try { string strSql = string.Format("select * from qqfriend.friend where Nickname = \'{0}\'", sqlwhere); table = MySqlHelpDao.ExecuteDataSet(strSql.ToString()).Tables[0]; } catch (Exception E) { } return(table); }
public DataTable GetTable() { DataTable table = null; try { StringBuilder strSql = new StringBuilder(); strSql.Append("select * from friend"); table = MySqlHelpDao.ExecuteDataSet(strSql.ToString()).Tables[0]; } catch (Exception E) { } return(table); }