SQL & SQL injections Flashcards

OCR GCSE J277 Computer Science specification

SQL SELECT command

Used to retrieve data from a database. Example: SELECT * FROM table_name WHERE condition.

1 / 7

Ready to master these flashcards?

Sign in to study with spaced repetition and track your progress.

Sign In to Track Progress

Terms in this set (7)

1

SQL SELECT command

Used to retrieve data from a database. Example: SELECT * FROM table_name WHERE condition.

2

SQL FROM command

Specifies the table to retrieve data from in a query. Example: SELECT * FROM table_name.

3

SQL WHERE command

Filters data based on a condition in a query. Example: SELECT * FROM table_name WHERE condition.

4

SQL wildcard (*)

Used to select all columns in a table. Example: SELECT * FROM table_name.

5

SQL injection

A form of attack where malicious SQL code is inserted into a query to manipulate or access a database.

6

Cause of SQL injection

Occurs when user input is not properly validated, allowing malicious SQL code to be executed in a database query.

7

Prevention of SQL injection

Use input validation, parameterised queries, and prepared statements to ensure user input cannot alter SQL commands.

Genie

Want to Learn More?

Get personalised lessons, quizzes, and instant feedback from your AI tutor.

Start Learning