摘要:
string sqlstr = @"select BranchCode,BranchName from t_sys_Branch where Jglx_DataDm='{0}' and IsVisible=1"; sqlstr = string.Format(sqlstr, departType);上述代码运行之后 sqlstr="select BranchCode,BranchName from t_sys_Branch where Jglx_DataDm='departType的值' and IsVisible=1" 阅读全文