函数LEN()使用方法

 

 

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()函数

posted @ 2013-12-25 10:52  玉面麒麟  Views(1518)  Comments(0Edit  收藏  举报