Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }