Skip to content

Instantly share code, notes, and snippets.

@FilipDeVos
Created May 16, 2011 14:05
Show Gist options
  • Save FilipDeVos/974498 to your computer and use it in GitHub Desktop.
Save FilipDeVos/974498 to your computer and use it in GitHub Desktop.
Thread Safe Insert/Update
create table updatetest
(
id int primary key,
name varchar(20),
amount numeric
)
insert into updatetest values (1, 'first', 100)
insert into updatetest values (2, 'second', 500)
insert into updatetest values (3, 'third', 30)
insert into updatetest values (4, 'fourth', 200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment