如果我要查询 表PZBM 但中 SL >5 的怎么写
SqlCommand strSql = new SqlCommand("Select * from Pzbm where sl>5", cnn); 
是这样吧
如果5是个变量
int lnInt  =5
SqlCommand strSql = new SqlCommand("Select * from Pzbm where sl>?lnInt", cnn); 
或是
SqlCommand strSql = new SqlCommand("Select * from Pzbm where sl>?@lnInt", cnn);