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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -