|
-
Jan 10th, 2002, 09:03 AM
#1
Thread Starter
Hyperactive Member
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.
-
Jan 10th, 2002, 09:07 AM
#2
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
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...
-
Jan 10th, 2002, 09:24 AM
#3
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|