Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sql question marks in insert statement

This may seem a very rudimentary question but I am not clear about it. In my code I have a query

    "insert into CONTACTS (EMAIL, FIRSTNAME, LASTNAME, TELEPHONE) values (?, ?, ?, ?)"

What is the '?' in the values, is it to fetch the real time values?

like image 346
user2472968 Avatar asked Oct 27 '13 04:10

user2472968


1 Answers

This is coming from some prepared statement. Those question marks will be populated with values later on, before the query is executed.

like image 98
SheetJS Avatar answered Sep 22 '22 18:09

SheetJS