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

SQL参数化建议使用名字 #16

Closed
sjqzhang opened this issue Sep 28, 2016 · 2 comments
Closed

SQL参数化建议使用名字 #16

sjqzhang opened this issue Sep 28, 2016 · 2 comments
Labels

Comments

@sjqzhang
Copy link

给一个建议 @Sql("insert into fruit(name, num) values(:1, :2)") 能不能写成 @Sql("insert into fruit(name, num) values({name},{num})") 或 @Sql("insert into fruit(name, num) values($name,$num)")

@ghost
Copy link

ghost commented Sep 28, 2016

或者写成 … values(?,?)

@liangyanghe
Copy link
Member

java8才支持从接口中取参数名字,之前都是不支持的

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

No branches or pull requests

2 participants