Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use 'like' ? #47

Closed
0312birdzhang opened this issue Jul 29, 2016 · 1 comment
Closed

How to use 'like' ? #47

0312birdzhang opened this issue Jul 29, 2016 · 1 comment

Comments

@0312birdzhang
Copy link

0312birdzhang commented Jul 29, 2016

Such like select filename,md5,dfspath from dfs_mapping where uri like '%player2116702552%',i found it not working.

@0312birdzhang
Copy link
Author

My fault,it works.

local domain = ngx.var.http_host
-- ngx.say("domain:",domain)
local sql1 = [[ 
                  select a.filename,a.md5,a.dfspath 
                  from dfs_mapping a left join dfs_apps b on a.appid = b.appid 
                  where a.uri =']] .. uri .. [[' and b.appzone like  '%]] .. domain .. "%'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant