string pro_sql = string.Format("select pr_bianma from tb_products where pr_bianma like '%120201%' and LEN(pr_bianma) = 10 order by pr_id desc",txtBianma.Text);
查询产品编码字符长度等于10的SQL语句。使用LEN()函数