English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have:

Select *
From TableName
WHERE (((TableName.ValueID)>=1000));

But then whats next? How do I increase all values over 1000 to 31000 etc?

Please advise.

thx

2006-11-29 06:17:43 · 3 answers · asked by justaguyaskingaquestion 1 in Computers & Internet Programming & Design

3 answers

You can simply use the below query to achieve the desired result:

UPDATE TableName
SET TableName.ValueID = TableName.ValueID+ 30000
WHERE TableName.ValueID >= 1000

2006-11-29 06:31:39 · answer #1 · answered by mikemleo 1 · 1 0

Update TableName Set ValueID=ValueID + 30000 where ValueID>=1000

2006-11-29 06:34:17 · answer #2 · answered by rentaprogrammer 2 · 0 0

For the actuality you want to declare which columns you're putting them into otherwise it tries to insert the values into all columns. modify your code to the lower than: INSERT INTO poll (question) VALUES ('attempt')

2016-11-29 22:38:27 · answer #3 · answered by ? 4 · 0 0

fedest.com, questions and answers