A Software Developer's notes along the way
You'd think there'd be a more elegant way to do this, but...
IF NOT EXISTS(
SELECT TOP 1 1 FROM mytable WHERE myid = @myid
)
BEGIN
...do stuff
END
Post a Comment
No comments:
Post a Comment