表A,A中字段phone,表示号码如何查询出phone中以0开头的数据,例如:011125689

解决方案 »

  1.   

    SELECT * FROM A WHERE phone like '0%'
      

  2.   

    神马类型的,字符串直接 select * from A where phone like '0%'数字的话,转成字符串处理
      

  3.   

    Oracle的sql,调用函数SUBSTR(字符串,开始位置,长度)sql:select * from A where substr(phone,0,1)='0'
      

  4.   

    select * from A where phone like '0%';或者:
    select * from A where substr(phone,0,1)='0';
      

  5.   

    select * from A where phone like '0%';
      

  6.   

    select * from A where phone like '0%';
      

  7.   

    select * from A where phone like '0%'
      

  8.   

    select * from A where phone like '0%'