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.
Josefa
2 months agoDong
2 months agoTwana
2 months agoClaribel
4 months agoFernanda
4 months agoAlexia
4 months agoFranchesca
4 months agoEvan
4 months agoBuffy
5 months agoArlie
5 months agoPura
5 months agoZona
5 months agoJaime
5 months agoBecky
5 months agoAlana
6 months agoSharen
6 months agoTy
7 months agoKimberely
7 months agoDenna
7 months agoHoney
7 months agoEliseo
7 months agoDarci
7 months agoMyra
1 month agoNaomi
2 months agoShannon
2 months ago