erlang - Mnesia - Check for a value in either of the keys in the table -


i have mnesia table "users" created following record

-record(users,{username,nickname,age}) 

let's have mnesia table following records

users | username | nickname | age  users | john     | baddy    | 25   users | monk     | john     | 26 

i have name match table...(say "john")..i want select or match rows has "john" either username or nickname...how can achieve this? if can suggest me way, happy...

thanks

have @ qlc - there's simple example here on learn erlang, or man page here. can use booleans match e.g. (in pseudocode) (username == john or nickname == john).


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -