Explore

SQL & SQL injections Flashcards
OCR GCSE J277 Computer Science specification
Ready to master these flashcards?
Sign in to study with spaced repetition and track your progress.
Sign In to Track ProgressTerms in this set (7)
SQL SELECT command
Used to retrieve data from a database. Example: SELECT * FROM table_name WHERE condition.
SQL FROM command
Specifies the table to retrieve data from in a query. Example: SELECT * FROM table_name.
SQL WHERE command
Filters data based on a condition in a query. Example: SELECT * FROM table_name WHERE condition.
SQL wildcard (*)
Used to select all columns in a table. Example: SELECT * FROM table_name.
SQL injection
A form of attack where malicious SQL code is inserted into a query to manipulate or access a database.
Cause of SQL injection
Occurs when user input is not properly validated, allowing malicious SQL code to be executed in a database query.
Prevention of SQL injection
Use input validation, parameterised queries, and prepared statements to ensure user input cannot alter SQL commands.

Want to Learn More?
Get personalised lessons, quizzes, and instant feedback from your AI tutor.
Start Learning