Source: StackOverflow
Question: While going through some SQL books I found that examples tend to use question marks (?
) in their queries. What does it represent?
Answer: What you are seeing is a parameterized query. They are frequently used when executing dynamic SQL from a program.
For example, instead of writing this (note: pseudocode):
ODBCCommand cmd = new ODBCCommand("SELECT thingA FROM tableA WHERE thingB = 7")