This is a simple way to increment a column count. It is very reliable since we are incrementing the value of the column using its own value.
UPDATE [MyTable]
SET [myColumnCount]=[myColumnCount] + 1
WHERE [id]=@rowid;
Share This To :
As an experienced leader with a software engineering background - I work with numerous technologies. My goal is to make it easier for those who are starting out, for those who are facing a challenge, or for whomever wants to save time and just get the job done. Follow me...
0 comments:
Post a Comment