search

Home  >  Q&A  >  body text

order by should be placed after where, but won't an error be reported if order()->where() is used later?

order by should be placed after where, but if order()->where() later, wouldn’t an error be reported?

zjyzjy2200 days ago1253

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2018-11-23 11:16:10

    The order of the methods in the chain operation is not important. The correct sql statement will eventually be generated by the build object

    reply
    1
  • Cancelreply