search

Home  >  Q&A  >  body text

What is the difference between new DB() and direct DB->table()

Is there any difference in efficiency and resource usage between new DB() and direct DB->table()?

只争朝夕只争朝夕839 days ago697

reply all(2)I'll reply

  • 只争朝夕

    只争朝夕2022-12-17 11:44:56

    Got it, thanks

    reply
    0
  • phpcn牛

    phpcn牛2022-12-01 10:28:05

    One is instantiated and then used, and the other only needs to be used directly or use the db helper function, there is not much difference

    reply
    0
  • Cancelreply