search

Home  >  Q&A  >  body text

Statement is useless

dump(Db::squery(sql:'SELECT * FROM 'test1''));This is useless

P粉653371603P粉6533716031080 days ago1047

reply all(3)I'll reply

  • P粉653371603

    P粉6533716032022-01-18 09:54:05

    OK

    reply
    0
  • autoload

    autoload2022-01-18 09:50:09

    Be careful. If you type a wrong punctuation mark, an error will be reported and the operation will fail.

    reply
    0
  • autoload

    autoload2022-01-18 09:21:00

    Where is the statement Db::squery(sql:'SELECT * FROM 'test1'')?

    dump(Db::query('SELECT * FROM `test1`'));

    You try this statement, there are three errors in the above sentence,

    is a query, not a squery,

    sql is a code prompt, not a manual input

    `test1`, here is a backtick, under the Esc key on the keyboard

    reply
    0
  • Cancelreply