sql语句中,类型不匹配
1、sql.Add('select n_je from c_ysr where c_xm='''+cbx_srz.Text+''' and n_yf='''+s+''' ');
2、sql.Add('select n_je from c_ysr where c_xm='''+cbx_srz.Text+''' and n_yf=''s'' ');
字段n_yf是日期类型,s是字符串,上面两个sql语句都不对,都是标准表达式类型不匹配。
如何在sql中,如何查找日期类型的字段呢?