What will it return when executing following SQL query

Look at the following SQL query.
SELECT * FROM product WHERE PCategory=’computers’ or 1=1–‘
What will it return? Select the best answer.

Look at the following SQL query.

SELECT * FROM product WHERE PCategory=’computers’ or 1=1–‘

What will it return? Select the best answer.

A.
All computers and all 1’s

B.
All computers

C.
All computers and everything else

D.
Everything except computers



Leave a Reply 1

Your email address will not be published. Required fields are marked *


seenagape

seenagape

I choose