Home > other >  Yii2 how to perform a native SQL query, thank you for your bosses
Yii2 how to perform a native SQL query, thank you for your bosses

Time:09-25

Yii2 how to perform a native SQL query, thank you for your bosses

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-dao
Refueling oh boy!

CodePudding user response:

Upstairs said yes, but not as much as possible in the framework to use native, frame encapsulation basic enough

CodePudding 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
  • Related