CodePudding user response:
Yii: : $app - & gt; The db - & gt; CreateCommand ($SQL, $param) - & gt; QueryAll ();CodePudding user response:
In your document, you in the database access in this section, https://www.yiichina.com/doc/guide/2.0/db-daoRefueling oh boy!
CodePudding user response:
Upstairs said yes, but not as much as possible in the framework to use native, frame encapsulation basic enoughCodePudding user response:
Use native you should pay attention to format, is not recommended (also is ok if you're good)CodePudding user response:
Actually inside the frame by the builder combination into SQL, implementation createCommand ($SQL, $param);CodePudding user response:
Ever think upstairs, with frame encapsulation, execution order