sql语句换行问题
sql语句写的很长,想换行,同时又让编辑器不报错,应如何处理?
------解决方案--------------------string strSql = "select xxxx " +
" from xxxx " +
" where xxxx ";
System.Text.StringBuilder sbSql = new System.Text.StringBuilder()
.Append( "select xxxx ")
.Append( " from xxxx ")
.Append( " where xxxx ");
sbSql.ToString();
注意空格