CREATE TABLE Post
(
postID - PK
memberID
title
thread
.
.
.
reported int DEFAULT 0,
dateCreated datetime DEFAULT GetDate() NOT NULL
);
I want to write a stored procedure that would raise “reported” field by 1 every-time i execute the procedure. Any idea?
How about:
You can then call that stored proc with:
or pass whatever
PostIDyou want to update…