示例#1
0
        public static void Insere_Registro_Genérico(string Tabela, string Parâmetros, string Valores)
        {
            string TextoSQL;

            TextoSQL = "INSERT INTO " + Tabela + "(" + Parâmetros + ") VALUES(" + Valores + ")";

            AFDAL.ExecuteNonQuery(TextoSQL);
        }
示例#2
0
        public static void Exclui_Registro_Genérico(string Tabela, string Where)
        {
            string TextoSQL;

            TextoSQL = "DELETE FROM " + Tabela + " WHERE " + Where;

            AFDAL.ExecuteNonQuery(TextoSQL);
        }
示例#3
0
        public static void Atualiza_Registo_Genérico(string Tabela, string Valores, string Where)
        {
            string TextoSQL;

            TextoSQL = "UPDATE " + Tabela + " SET " + Valores + " WHERE " + Where;

            AFDAL.ExecuteNonQuery(TextoSQL);
        }