sql search query

Last post 05-10-2008 11:07 AM by Dested. 1 replies.

Sort Posts:

  • sql search query

    05-10-2008, 7:17 AM
    • Loading...
    • pathipati
    • Joined on 07-26-2007, 4:56 AM
    • Bangalore
    • Posts 186

    Hi,
    In my table there is a coloumn Location in that column there are so many rows filed with Bangalore, chennai.....like that
    in frot end there is a search by location one textbox is there
    in textbox if he enters B means all bangalore, bihar like all b values will come and he enters bangalore, chennai, hydrabad, delhi then all 4 values will come How?

  • Re: sql search query

    05-10-2008, 11:07 AM
    • Loading...
    • Dested
    • Joined on 10-11-2006, 6:26 AM
    • Phoenix
    • Posts 167

    If you are just looking for the sql to return those rows it would look something like   select Location from TableName where Location like VARIABLE+'%'  

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter