示例#1
0
        public bool UpdateKeyword(Keyword oldKeyword, string newKeyword)
        {
            string sSQL = "UPDATE St_Keywords SET KeywordName = '" + newKeyword + "' WHERE KeywordName = '" + oldKeyword.KeywordName + "'";

            return(m_oDBConn.ExecuteNonQuery(sSQL));
        }
示例#2
0
        public bool DeleteKeyword(Keyword Name)
        {
            string sSQL = "DELETE FROM St_Keywords WHERE KeywordName = '" + Name.KeywordName + "'";

            return(m_oDBConn.ExecuteNonQuery(sSQL));
        }