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
posted by Howard @ 11:06 AM 0 Comments Links to this post
Post a Comment
Create a Link
<< Home
View my complete profile
Subscribe toPosts [Atom]
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home