예제 #1
0
파일: QMySql.cs 프로젝트: fence-post/sqrach
        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);
        }
예제 #2
0
파일: QMySql.cs 프로젝트: fence-post/plants
        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);
        }