Created
February 2, 2024 09:47
-
-
Save pranithan-kang/10d3fb9b9fca236b0b0a125d2004161b to your computer and use it in GitHub Desktop.
RDBMS Transaction Experimental
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table abc ( | |
a int primary key, | |
b text | |
) ; | |
begin transaction; -- begin transaction | |
insert into abc (a, b) values (1, 'testing'); -- success | |
insert into abc (a, b) values (1, 'testing2'); -- failed | |
commit; -- rollback | |
end; -- end transaction | |
drop table abc; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment