Look at the following SQL query.
SELECT * FROM product WHERE PCategory='computers' or 1=1--'
What will it return? Choose the best answer.
The 1=1 tells the SQL database to return everything, a simplified statement would be SELECT * FROM product WHERE 1=1 (which will always be true for all columns). Thus, this query will return all computers and everything else. The or 1=1 is a common test to see if a web application is vulnerable to a SQL attack.
Sharen
5 days agoTy
10 days agoKimberely
15 days agoDenna
20 days agoHoney
26 days agoEliseo
1 month agoDarci
1 month ago