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); }
public static void Exclui_Registro_Genérico(string Tabela, string Where) { string TextoSQL; TextoSQL = "DELETE FROM " + Tabela + " WHERE " + Where; AFDAL.ExecuteNonQuery(TextoSQL); }
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); }