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);sql
查詢產品編碼字符長度等於10的SQL語句。使用LEN()函數函數