vc assess selcet 语句的问题

 int b,c;
   b=0;
   c=0;
   char c1[12],c2[12];
   GetDlgItem(IDC_EDIT1)->GetWindowText(c1,12);
   GetDlgItem(IDC_EDIT5)->GetWindowText(c2,12);
   b=atoi(c1);
   c=atoi(c2);

   ADO m_Ado;
   m_Ado.OnInitADOConn();//连接数据库
   CString SQL = "select * from employees where 炉号 >= b and 炉号 <= c";   //设置查询字符串
   m_Ado.m_pRecordset = m_Ado.OpenRecordset(SQL);//打开记录集
    以下是用来计算某字段下的平均值,总是提示我至少有一个参数没有被指定值,估计是那句SQL语句错了   但不知道怎么改啊   是不是格式不对啊,请大神赐教,谢谢
  CString SQL;
SQL.Format("select * from employees where 炉号 >= %d and 炉号 <= %d", b, c);

自己先顶下,坐等大神来。。。。。。。。。。。。。。

以下的代码在哪里?

你的查询不能查平均值。