Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

模型query和execute方法支持参数绑定#425

Open
keepeye wants to merge 4 commits intotop-think:masterfrom
keepeye:feature-model-query-bind-params
Open

模型query和execute方法支持参数绑定#425
keepeye wants to merge 4 commits intotop-think:masterfrom
keepeye:feature-model-query-bind-params

Conversation

@keepeye
Copy link
Contributor

@keepeye keepeye commented May 12, 2016

复杂查询语句使用query和execute的时候支持参数绑定功能。

M()->bind(':state','1')->query("select * from t where state=:state");
M()->bind(':state','0')->execute("delete from t where state=:state");

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant