ram a

ram a

  • NA
  • 1
  • 0

Question on C# strings

Jun 3 2009 5:06 PM

Hi All,
Could some one explain me the difference between the 2 lines below.
string sql = @"SELECT columnname " +
      @"FROM tablename " +
      @"WHERE ID = '" + settingId + "' ";
 
string sql = "SELECT columnname " +
      "FROM tablename " +
      "WHERE ID = '" + settingId + "' ";
 
Does '@' in the first statement makes any difference?
 

Answers (2)