sql - Delete from multiple tables ASP.NET -
How to delete from the two tables at once using the same deleted statement in ASP.Net?
itemprop = "text">
Simply delete the SQL script CONSAT:
Connection as new SqlConnection (ConnectionString) command as new command in the new SqlCommand ("Remove from Table 1, where id 1 = @ id 1; delete from table 2, where id = 2 = id = 2"; connection) command. Parameter. Add ("@ Id1", 1); order. Parameter. Add ("@ id2", 2); Command.Connection.Open () command.exequine () end use
Comments
Post a Comment