Forum Home
|
Marketplace
|
Articles
|
Blogs
|
Interviews
|
Tools
REGISTER
|
SEARCH
|
MEMBERS
|
F.A.Q.
Register Here
Forum Rules
Webmaster-Talk.com
>
Coding Talk
>
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: 141
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
When You
Register
, These Ads Go Away!
06-16-2009, 02:47 AM
#
2
(
permalink
)
Re: SQL quick question... searching for a variable within a string
davidj
Super Talker
Posts: 120
Name: David Jackson
Trades:
0
Talkupation:
use a
LIKE
instead of an
EQUALS
Code:
WHERE COMPANY_NAME LIKE "%company name%"
__________________
Would you like me to teach you PHP?
06-16-2009, 11:04 AM
#
3
(
permalink
)
Re: SQL quick question... searching for a variable within a string
sepple
Super Talker
Posts: 141
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
Webmaster-Talk.com
>
Coding Talk
>
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
Webmaster Resources Marketplace:
Software Development Company
|
Webhosting.UK.com
|
Text Link Brokers
|
Dedicated Server Hosting
|
Managed Hosting
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
Mark Forums Read
-
View Forum Leaders
-
Contact Us
-
Webmaster Forum
-
Advertise
-
Archive
-
Privacy Statement
-
Top
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Furl this Thread!
Page generated in
0.11595
seconds with
13
queries