asp.net有没有类似VFP这样的功能
local lcSqlCmd ,lcName,lcDept
text to lcSqlCmd textmerge noshow
select * from student where name=?lcName and bm=?lcDept
endtext
或:
lcSqlCmd="select * from student where name=?lcName and bm=?lcDept "
以上是vfp的字符串赋值语句,请问:Asp.net(C#)中有类似功能吗?
我看一些教材上都是采用拼接方式,这样写真的很烦.
如:
string lcSqlCmd=" select * from student where name='"+lcName+"' and bm='"+lcDept+"'"
请问Asp.net(C#)有没有类似vfp这样更简捷,方便,灵活的方式呢?TKS.