Erlang的Match specifications

来源:互联网 发布:心事无人知 原唱 编辑:程序博客网 时间:2024/05/16 12:59

参考  http://www.cnblogs.com/me-sa/archive/2011/10/22/erlang0008.html


T = ets:new(task_table, [set, protected, {keypos, 1}]).

ets:new(task_table, [set, protected,named_table, {keypos, 1}]),
ets:insert(task_table ,{1, "hi", 100 }),
ets:insert(task_table ,{2, "hi", 200 }),
ets:insert(task_table,{3, "ab",300}),

 ets:select(task_table,[{{'$2', "hi", '$1'},[],['$$']}]).

{ request,'GET', ["user_http"],[{"room","dd"}] }

0 0
原创粉丝点击