robinantill
Technical User
I need to select certain records and then replace then with a new value. I have been searching through the manual and also on this forum board but to no avail. I have tried loads of different combinations but can not find the answer.
I can select my records using the following:-
SELECT numcomments FROM wsnlinks_links WHERE numcomments < 53
And I can update my records using the following:-
UPDATE wsnlinks_links SET numcomments = 22
What I can't do is to combine these into one SQL query which is what I need.
I would appreciate some guidance to this with how do do this.
Thanks,
Robin
I can select my records using the following:-
SELECT numcomments FROM wsnlinks_links WHERE numcomments < 53
And I can update my records using the following:-
UPDATE wsnlinks_links SET numcomments = 22
What I can't do is to combine these into one SQL query which is what I need.
I would appreciate some guidance to this with how do do this.
Thanks,
Robin