Column Editing

Post Reply
Desufire
Posts: 162
Joined: Sun Feb 22, 2015 2:58 am

Column Editing

Post by Desufire » Fri Jun 19, 2015 9:38 pm

Okay I've been adding numbers to theroam column in mob_group sql for over an hour. I've barely made a dent. There's gotta be a way to edit an entire column at once. I have sublime, visual, and notepad++. Who's my hero?

Delaide
Posts: 478
Joined: Sat Jun 14, 2014 8:58 am

Re: Column Editing

Post by Delaide » Fri Jun 19, 2015 10:13 pm

Notepad ++ ctrl+h?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Column Editing

Post by kjLotus » Fri Jun 19, 2015 11:26 pm

use an sql query?

Desufire
Posts: 162
Joined: Sun Feb 22, 2015 2:58 am

Re: Column Editing

Post by Desufire » Sat Jun 20, 2015 2:44 am

Yeah, we figured out how to write an update query.

Got another question though. How can I import a custom sql? Like, I have a custom item_mod sql that I usually just execute after item_mod, but I'd like to be able to add it so that it shows in Navicat and has its tables shown.

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: Column Editing

Post by demolish » Sat Jun 20, 2015 3:33 am

sql file is just a bunch of queries
since your queries have

Code: Select all

UPDATE `item_mods`
it'll run the queries on the item_mods table (since that's the table you're making changes to)

easiest way would be to write a separate SELECT query for your custom items and save it in navicat e.g.
SELECT * FROM item_mods WHERE itemid IN(itemid, anotheritemid, etc)
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

Desufire
Posts: 162
Joined: Sun Feb 22, 2015 2:58 am

Re: Column Editing

Post by Desufire » Sat Jun 20, 2015 4:08 pm

demolish wrote:sql file is just a bunch of queries
since your queries have

Code: Select all

UPDATE `item_mods`
it'll run the queries on the item_mods table (since that's the table you're making changes to)

easiest way would be to write a separate SELECT query for your custom items and save it in navicat e.g.
SELECT * FROM item_mods WHERE itemid IN(itemid, anotheritemid, etc)
Okay. Always learning something new lol. Thanks all.

Post Reply