2016-03-23 71 views
2

我需要從一個空間的兩個值中選擇tarantool全部數據。 如何在mysql中執行tarantool請求?如何在mysql中執行tarantool請求?

select from aaa where a=1a22cadbdb or a=7f626e

現在我可以提出兩點要求:

box.space.logs:select({'1a22cadbdb'}) 
box.space.logs:select({'7f626e0123'}) 

,但我不知道怎麼的結果合併成一個;(

回答

-1

對我來說,這項工作很好,但需要做檢查的回報從第一選擇:

local res = {} 
for k, v in pairs (box.space.email:select({email})[1]) do 
    if type(v) == 'string' then 
     table.insert(res, box.space.logs:select({v})[1]) 
    end 
end