I have somebody elses code (C# ASP.Net) which contains the following query:
string query = "SELECT distinct(destinations.name) as Destinations
FROM destinations, flights
WHERE destinations.d_ID = flights.d_ID
AND flights.Date = #" + date.ToShortDateString() + "#";
I could not find why the # is required here before and after the date parameter. It could be passed as a normal string value (between ' and '). Is there any advantage of using # ?
Many Thanks, Ali