Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2009

    Thumbs down Unanswered: search from field seperate with comma

    what i want a sql query to search employee details from the table 'emp_table'.
    The field 'mem_fld' contains the value seperated with commas( eg:- 2,4,9,11,) will have n numbers.
    My search input value is 4 or 9 or something else.
    I have to list the records from the table matching with the input value?
    thanks in advance.

  2. #2
    Join Date
    Apr 2002
    Toronto, Canada
    terrible design, will perform very poorly

    but what you want can be accomplished with the FIND_IN_SET function | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts