Suppose you want all the data from the table named as a student then which of the following syntax you will use?

39. Suppose you want all the data from the table named as a student then which of the following syntax you will use?

  1. $query = DB:query('SELECT * FROM 'student'');
  2. $query = DB::query('SELECT * FROM 'student'');
  3. $query = ::query('SELECT * FROM 'Student'');

Answer: B) DB::query('SELECT * FROM 'student'');

Explanation:

$query = DB::query('SELECT * FROM 'student''); is the correct syntax.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.