SQL Question
Is there way to change sellrate from the results of this query...?
SELECT id, Name, Price, sellrate FROM items WHERE Name LIKE 'Spell:%'; I was thinking to add set sellrate = 5 in but it didn't go as planned. Just curious. |
Would you mind being a little more in depth before I write out a query that may not do the correct thing? You want to update all items with "Spell:" in the name to a sellrate of 5, yes?
|
Yes, thats exactly what I want to do.
|
Select is for querying information. You would need to use update to actually change it.
Something like: update items set sellrate = 5 where name like 'Spell:%' |
All times are GMT -4. The time now is 09:24 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.