REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
Coding Forum
You are currently viewing our Coding Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
Coding Forum
>
SQL quick question... searching for a variable within a string
Link Back
Thread Tools
Search this Thread
SQL quick question... searching for a variable within a string
06-15-2009, 05:43 PM
#
1
(
permalink
)
SQL quick question... searching for a variable within a string
sepple
Super Talker
Posts: 147
Trades:
0
Talkupation:
I am trying to use Microsoft Access to match company names.
I want "Pepsi" to find all of the following:
The Pepsi Company
Pepsi, Inc.
Pepsi
Code:
WHERE COMPANY_NAME = "%" & [Company Short Name]& "%"
Please help, I am struggling and can't find any help online.
Thanks in advance,
Stephen
Register
now for full access!
06-16-2009, 02:47 AM
#
2
(
permalink
)
Re: SQL quick question... searching for a variable within a string
davidj
Extreme Talker
Posts: 181
Name: David Jackson
Trades:
0
Talkupation:
use a
LIKE
instead of an
EQUALS
Code:
WHERE COMPANY_NAME LIKE "%company name%"
__________________
Please login or register to view this content.
Registration is FREE
06-16-2009, 11:04 AM
#
3
(
permalink
)
Re: SQL quick question... searching for a variable within a string
sepple
Super Talker
Posts: 147
Trades:
0
Talkupation:
Turns out...
WHERE COMPANY_NAME = "*" & [Company Short Name]& "*"
Works great....thanks
__________________
Thanks
Stephen
Last edited by sepple; 06-16-2009 at
11:24 AM
..
« Reply to
SQL quick question... searching for a variable within a string
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
Coding Forum
>
SQL quick question... searching for a variable within a string
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.18121
seconds with
12
queries