dbTalk Databases Forums  

how to add 1 to the field

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss how to add 1 to the field in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
yuval
 
Posts: n/a

Default how to add 1 to the field - 05-07-2005 , 01:53 PM






when i work with Aceess Db i have SQL statment that cout the visitor:


update Tbl1 set fldvisit = fldvisit +1 where fld2='abc'




when i move to SQL Server it's not working
what to do?


Reply With Quote
  #2  
Old   
John Bell
 
Posts: n/a

Default Re: how to add 1 to the field - 05-07-2005 , 01:57 PM






Hi

This should be ok! What is the error/problem?

Posting DDL and example data http://www.aspfaq.com/etiquett*e.asp?id=5006
will help others to re-create the problem.

John

"yuval" <yuvalbra (AT) gmail (DOT) com> wrote

Quote:
when i work with Aceess Db i have SQL statment that cout the visitor:


update Tbl1 set fldvisit = fldvisit +1 where fld2='abc'




when i move to SQL Server it's not working
what to do?




Reply With Quote
  #3  
Old   
David Portas
 
Posts: n/a

Default Re: how to add 1 to the field - 05-08-2005 , 05:39 AM



What does "not working" mean. Tell us the error message if any or post some
example code to reproduce the problem (CREATE, INSERT, UPDATE statements).

--
David Portas
SQL Server MVP
--



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.