Google News
logo
MySQL - Quiz(MCQ)
With MySQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?
A)
SELECT * FROM Persons WHERE FirstName='Peter'
B)
SELECT * FROM Persons WHERE FirstName<>'Peter'
C)
SELECT [all] FROM Persons WHERE FirstName='Peter'
D)
SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'

Correct Answer :   SELECT * FROM Persons WHERE FirstName='Peter'

Advertisement