TP6 How to use exec to execute statements in batches
lis
lis 2020-12-16 17:06:22
0
1
1093

Currently using the framework TP6, I need to batch execute statements other than queries, but TP6's execute does not seem to be able to batch execute statements (such as: execute("Update statement first; Update statement second;") This will report an error ) , I want PDO's exec, but I don't know how to write it in the TP framework.

lis
lis

reply all(1)
天蓬老师

There is a detailed introduction to pdo in the php manual

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!