static public string SqlString(string sSql) { string sResult = ""; using (QMySql s = new QMySql()) { s.Open(sSql); if (s.GetRow()) { sResult = s.GetString(0); } } return(sResult); }
static public IEnumerable <string> SqlList(string sql) { List <string> result = new List <string>(); using (QMySql s = new QMySql()) { s.Open(sql); while (s.GetRow()) { result.Add(s.GetString(0)); } } return(result); }