SQLHelper sqhlpr = new SQLHelper();
sqhlpr.SqlText = "Select StudentName from tblStudentInfo where class=" + NurseryButton.Text;
DataTable dt = sqhlpr.getDataTable(false);
这是我的代码。现在 sqhlpr.sqlText 的结果是
select StudentName from tblStudentInfo where class= **Nursery**
(即NurseryButton.Text=Nursery),但我想要的结果是从tblStudentInfo 中选择StudentName,其中class=' Nursery'。这怎么做???这看起来很简单,但我无法弄清楚......