How do you not remove any other symbols?



  • How to remove the row from which there's a symbol '1', but there's also a line from '11', they don't have to, like and regexp don't help much, or I'm a team that suits them.



  • 1 option

    select * from
    

    (select * from table_name
    where column like '%1%' ) a

    where a.column not like '%11%'

    2 Option

    select * from table_name
    where column like '%1%' AND column NOT like '%11%'



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2