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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
foolstone
Newbie


Joined: 16 Mar 2006
Posts: 1

PostPosted: Fri Mar 17, 2006 5:56 am   

A Quest about database %query
 
#query &key=~"foobar"

the above work well and display the match record
the key value contains foobar,just like "foobarxxxxx"


but
#echo %query(&key=~"foobar")
display nothing

if exactly match,just like below
#echo %query(&key=~"foobarxxxxx")
it work well

why?
how to partly match in database query?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Mar 17, 2006 10:02 am   
 
Use the %match function instead. The match operator that you are using always had odd problems that just couldn't be pinned down.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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