Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2013, 11:00 PM
Envisage
Sarnak
 
Join Date: Mar 2010
Posts: 45
Default 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.
Reply With Quote
  #2  
Old 07-28-2013, 11:18 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,590
Default

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?
Reply With Quote
  #3  
Old 07-28-2013, 11:28 PM
Envisage
Sarnak
 
Join Date: Mar 2010
Posts: 45
Default

Yes, thats exactly what I want to do.
Reply With Quote
  #4  
Old 07-29-2013, 12:35 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,743
Default

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:%'
Reply With Quote
Reply


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

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

Forum Jump

   

All times are GMT -4. The time now is 10:07 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3