To create a parameterized query, you use placeholders in the SQL statement, often denoted by ________.
- dollar signs
- exclamation marks
- percent signs
- question marks
In parameterized queries, placeholders are typically denoted by question marks (?). These question marks serve as positional markers for where the input data should be inserted into the SQL statement. When executing the query, the actual values are bound to these placeholders, ensuring proper sanitation and preventing SQL injection attacks.
Loading...
Related Quiz
- Which ADO.NET method is used to add parameters to a SqlCommand object?
- What does LINQ stand for in C#?
- How can you implement custom data binding in an ADO.NET application?
- When handling concurrency conflicts in Entity Framework, you can use the ___________ property to detect changes made by other users.
- In Entity Framework, optimistic concurrency control helps prevent ___________ conflicts.