Results 1 to 3 of 3

Thread: easy one(resolved)

  1. #1

    Thread Starter
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404

    easy one(resolved)

    how do you do a wildcard in an sql statement

    eg

    select * form my_table where username='(something)smith'

    how do i do the (something) bit??
    Last edited by progressive; Jan 10th, 2002 at 09:25 AM.

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Hi

    Depending on whether its for Sql Server or access or something :

    Select * from tablename where [Thingy] like 'a*';
    Select * from tablename where [Thingy] like 'a%';

    Regards

    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    cheers!

Posting Permissions

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



Click Here to Expand Forum to Full Width