V
VB Programmer
What is the SQL Express SQL syntax to increment a field by 1?
The stored proc doesn't like this:
CREATE PROCEDURE dbo.VideoViewIncrement
@VideoId nchar(40),
AS
UPDATE Videos SET TimesViewed = TimesViewed + 1 WHERE (VideoId = @VideoId)
RETURN
Any ideas?
Thanks.
The stored proc doesn't like this:
CREATE PROCEDURE dbo.VideoViewIncrement
@VideoId nchar(40),
AS
UPDATE Videos SET TimesViewed = TimesViewed + 1 WHERE (VideoId = @VideoId)
RETURN
Any ideas?
Thanks.