search

Home  >  Q&A  >  body text

TP6 How to use exec to execute statements in batches

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.

lislis1428 days ago1095

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2020-12-21 14:06:45

    There is a detailed introduction to pdo in the php manual

    reply
    0
  • Cancelreply