想查询到客户编码是以数字开头的客户的相关信息select id,客户名称,客户编码 from aa where 客户编码 like '#*'语句如上,但不显示结果请各位dx帮忙了~~~~~~~~~~~~~~~~小女子不胜感激

解决方案 »

  1.   

    select id,客户名称,客户编码 from aa where ISNUMERIC(substring([客户编码],1,1))=1
      

  2.   

    select id,客户名称,客户编码 from aa where ISNUMERIC(substring([客户编码],1,1))=1
      

  3.   

    select id,客户名称,客户编码 from aa where left([客户编码],1) in ('0','1','2','3','4','5','6','7','8','9')
    是不是也可以??
      

  4.   

    select id,客户名称,客户编码 from aa where IsNumeric(Mid([客户编码],1,1))
      

  5.   

    我想用like做啊,因为后面还要查询以某个字母开头的信息用函数也能搞定么?
      

  6.   

    在SQLSERVER里面:select id,客户名称,客户编码 from aa where 客户编码 like '%"+TextBox1.Text+"%'
      

  7.   

    select id,客户名称,客户编码 from aa where isnumeric(客户编码)
    取得字符串的第一个字母,然后判断是否为数字。