erlang mnesia ???????????
???????????? ???????[ 2013/10/12 9:41:02 ] ????????
????5??Join ????????
%%===============================================
%% select y_info.* from y_account join y_info on (y_account.id = y_info.id)
%% where y_account.account = 'xiaomin'
%%===============================================
%% ??? qlc
F = fun() ->
Q = qlc:q([Y || X <- mnesia:table(y_account)??
X#y_account.account =:= "xiaomin"??
Y <- mnesia:table(y_info)??
X#y_account.id =:= Y#y_info.id
])??
qlc:e(Q)
end??
mnesia:transaction(F).
????6??Limit ???
%%===============================================
%% select * from y_account limit 2
%%===============================================
%% ??? qlc
F = fun() ->
Q = qlc:q([E || E <- mnesia:table(y_account)])??
QC = qlc:cursor(Q)??
qlc:next_answers(QC?? 2)
end??
mnesia:transaction(F).
??????????qlc???????????????????????“-include_lib("stdlib/include/qlc.hrl").”???????????????“Warning: qlc:q/1 called?? but "qlc.hrl" not included”????檔
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11