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

如何使用like? #28

Closed
uninxc opened this issue Dec 6, 2017 · 2 comments
Closed

如何使用like? #28

uninxc opened this issue Dec 6, 2017 · 2 comments

Comments

@uninxc
Copy link

uninxc commented Dec 6, 2017

"#if(:1 != '' && :1 != null ) AND group_name like '%#{:1}%' #end "

该框架不认为在单引号里面的是一个变量 #{:1}

@liangyanghe
Copy link
Member

group_name like :1
其中:1里是字符串“%xxxx”
这样就行

@uninxc
Copy link
Author

uninxc commented Dec 7, 2017

OK! 3ks!

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

2 participants