Avatar of rgb192
rgb192Flag for United States of America

asked on 

field+=1

How could I write field=field+1
Microsoft SQL Server 2005

Avatar of undefined
Last Comment
rgb192
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

If you mean an update to increment the values...

UPDATE [A_Table]
SET [A_Column] = [A_Column] + 1

Open in new window

Avatar of rgb192
rgb192
Flag of United States of America image

ASKER

Could I use +=
Avatar of sventhan
sventhan
Flag of United States of America image

This is true...

(field+=1) = (field=field+1)


Post full code...
Avatar of rgb192
rgb192
Flag of United States of America image

ASKER

Field+=1 does not work
Avatar of sventhan
sventhan
Flag of United States of America image

how about field=field+1?

You need to explain your issue little more to get some help.
ASKER CERTIFIED SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of rgb192
rgb192
Flag of United States of America image

ASKER

thanks
Microsoft SQL Server 2005
Microsoft SQL Server 2005

Microsoft SQL Server 2005 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. It includes support for managing XML data and allows a database server to be exposed over web services using Tabular Data Stream (TDS) packets encapsulated within SOAP (protocol) requests.

72K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo