Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Mon Sep 20, 2010 1:09 am   

Database Confusion
 
I am really confused on how to change data in a database record.
I have a database called inventory
I have 6 fields:
across_back
on_waste
etc..
Now I want to add to the field across_back some text. How do you do it and then show it.

I was trying ADDKEY function but I don't think I am doing it correctly..
A little explanation would be helpful
_________________
Run as hard as a wild beast if you will, but you won't get any reward greater than that destined for you.
Source: (Egyptian)
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: Mon Sep 20, 2010 4:29 pm   
 
you can use #ADDKEY db Name record tp change the data so if you have across_back you can do

#ADDKEY equipment_DB across_back cloak

and use that for any item

to show it you can use @db.record or %db(@db,record) so that would be:

#show @equipment_DB.across_back
or
#show %db(@equipment_DB,across_back)
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net