代表@后的内容完全按照字符串处理..不进行转义等操作..可以防止换行后C#报错,正则表达式的时候用的比较多.
string sql = @"select stu.Id as StudentId,stu.Name,ses.SchoolId,ses.CategoryId,ses.MajorId,ses.KechengId,ses.ExamNo,
ses.StudentId,SignYear,SignMonth,ses.Remark,ses.SignType from " + dbNamecycrm + @"StudentExamSign ses
left join " + dbNamecyweb + @"UserInfo stu on stu.Id=ses.StudentId
where ses.Flag>0 and ses.Id=" + id;