search

Home  >  Q&A  >  body text

php - Reading of alias content

Now there is this sql statement, one of which is aliased as result
$sql = "select sum(num) as result from table";
The question is how to read the content of result? ?

習慣沉默習慣沉默2792 days ago641

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:12:27

    After the sql execution is completed, print the return value to see what is returned

    reply
    0
  • Cancelreply