Skip to content

Instantly share code, notes, and snippets.

@pranithan-kang
Created February 2, 2024 09:47
Show Gist options
  • Save pranithan-kang/10d3fb9b9fca236b0b0a125d2004161b to your computer and use it in GitHub Desktop.
Save pranithan-kang/10d3fb9b9fca236b0b0a125d2004161b to your computer and use it in GitHub Desktop.
RDBMS Transaction Experimental
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