Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql transaction

BEGIN TRANSACTION
BEGIN TRY

UPDATE HESAP SET BAKIYE = BAKIYE - 1000
WHERE Name='Name' AND Surname='Surname'

UPDATE HESAP SET BAKIYE = BAKIYE + 1000
WHERE Name='Name' AND Surname='Surname'

COMMIT
END TRY
BEGIN CATCH
ROLLBACK
END CATCH
Comment

sql transaction

BEGIN TRAN T1;  
UPDATE table1 ...;  
BEGIN TRAN M2 WITH MARK;  
UPDATE table2 ...;  
SELECT * from table1;  
COMMIT TRAN M2;  
UPDATE table3 ...;  
COMMIT TRAN T1;
Comment

PREVIOUS NEXT
Code Example
Sql :: what is like operator in sql 
Sql :: TSQL convert csv to table 
Sql :: load a log file in that format into MySQL 
Sql :: on update cascade 
Sql :: install sql server management studio ubuntu 
Sql :: quit mysql 
Sql :: mysql_union 
Sql :: mysqldump 
Sql :: postgres jsonb array push new element 
Sql :: SQL Delete and Truncate Rows 
Sql :: create view in oracle sql 
Sql :: aliasing in sql 
Sql :: get full yearr data omonthwuse sql 
Sql :: SQL AS With More Than One Column 
Sql :: get relation data in mysql using query to excel 
Sql :: 10000000000000000000 am to meters 
Sql :: Insert into Select * - NAYCode.com 
Sql :: SQL Query Records Using Dates 
Sql :: contraint default SQL 
Sql :: oracle execute immediate quotes 
Sql :: select all column 
Sql :: creating a simple notify in postgresql 
Sql :: mysql zerofill 
Sql :: https://livesql.oracle.com/apex/livesql/s/l8fedwph53gt5gigbacwvu6m0 
Sql :: postgres add column at position 
Sql :: Postpresql relation not found 
Sql :: r dbConnect(odbc::odbc() to ms sql server remote 
Sql :: mode sql course 
Sql :: close sql query vb.net 
Sql :: Sql runnignsum 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =