Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle c# multiple update sql

string sql1 = "BEGIN update Table1 set name = 'joe' where id = 10;",
       sql2 = "update Table2 set country = 'usa' where region = 'americas';",
       sql3 = "update Table3 set weather = 'sunny' where state = 'CA';",
       sql4 = "update Table4 set engine = 'v8' where maker = 'benz'; END;";

string sql = string.Format("{0}{1}{2}{3}",sql1,sql2,sql3,sql4);

using (OracleConnection conn = new OracleConnection())
using (OracleCommand cmdUpdate = new OracleCommand(sql, conn))
{
    conn.Open();
    recs = cmdUpdate.ExecuteNonQuery();
}
Comment

PREVIOUS NEXT
Code Example
Sql :: restore backup 
Sql :: conectar base de datos mysql con java 
Sql :: goto in SQL server in production 
Sql :: how to connect .sql data set to powerbi 
Sql :: resullt all update knex mysql 
Sql :: Jenkins SQLCMD run 
Sql :: subquery aggregation 
Sql :: in operator sql 
Sql :: online t-sql editor 
Sql :: mysql insert into select with recursive 
Sql :: Resulting Query 
Sql :: sqlc yml settings version 1.14 
Sql :: find Overlapping sql 
Sql :: *Action: Options are to resolve the compilation/authorization errors, disable the trigger, or drop the trigger. 
Sql :: sql workbench 
Sql :: SQL AND, OR and NOT Operators 
Sql :: how to create roles in oracle developer sql 
Sql :: BSD sed: extra characters at the end of d command 
Sql :: flask sqlalchemy decimal 
Sql :: mysql portable 
Sql :: t-sql conditional order by multiple columns 
Sql :: select a row include list of array with join table SQL 
Sql :: umgebungsvariable setzen für mysql 8 
Sql :: select between dates opstgres 
Sql :: SQL Creating a Table to Store Date and Time 
Sql :: add two days to current date in sql when creating tables 
Sql :: sql select column name like from multiple tables 
Sql :: show * from table mysql 
Sql :: SQL-Arten 
Sql :: datatype for phone number in sql 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =