search

Home  >  Q&A  >  body text

After printing sql on the web page, what tool is used to automatically generate sql statements?

What is this tool?

image.png

ChenChen1675 days ago1317

reply all(5)I'll reply

  • 青Blue

    青Blue2020-06-15 22:11:46

    There is information in the screenshot, the implementation principle of native query in tp5, just go to the relevant source code of tp5

    reply
    0
  • finley

    finley2020-06-13 15:03:37

    It’s not clear what the tool is, but you can check the last executed SQL in the code

    echo Db::table('staff')->getLastSql();

    Statement

    reply
    0
  • Chen

    嗯~ o(* ̄▽ ̄*)o ok

    Chen · 2020-06-13 23:57:32
  • WJ

    WJ2020-06-12 10:34:30

    What's the meaning? Are you talking about what tool you use to execute this sql statement?

    reply
    0
  • Chen

    What are the tools in the video diagram? can be based on Db::table('staff') ->field(['name','salary']) ->where('salary','>',5000) ->select() }; Automatically generate sql statements

    Chen · 2020-06-12 10:39:44
  • Cancelreply