string aa="张三"
sqlcommand cmd=new sqlcommand("select count(*) from table1 where xm=aa",sqlconnection)
int count=(int)cmd.ExecuteScalar();
执行后出错,我知道错在“xm=aa”上,在vb.net是用xm='" & aa & "',请问在c#中该如何做
sqlcommand cmd=new sqlcommand("select count(*) from table1 where xm=aa",sqlconnection)
int count=(int)cmd.ExecuteScalar();
执行后出错,我知道错在“xm=aa”上,在vb.net是用xm='" & aa & "',请问在c#中该如何做
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货