Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 14th, 2007, 10:24 AM
Authorized User
 
Join Date: May 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default HOW TO SEACRH FOR WORDS IN DATABASE

HELLO I NEED HELP ON HOW TO SEARCH FOR NUMBER ENTERIES OF A PARTICULAR WORD IN A DATABASE.
THAT IS THE NUMBER(A PARTICULAR WORD) ARE WITHIN A DATABASE.
SO AS TO ENABLE ME MAKE STATISTICS OF ENTRIES...
THNAK YOU. SAM



 
Old May 14th, 2007, 10:31 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Something like this should work:

SELECT count(myColumn) from table where Contains(myColumn, 'Search Text')

Also do a google search on: Full Text Search. This should help you.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old May 14th, 2007, 10:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hey there...

with some tunning this could help you:
Code:
SELECT COUNT(*) FROM Table_name WHERE field LIKE '%word_to_look_for%'
depending on your database % should be *.
Also replace red with your information...

This will count the number of rows that has your specific search. but if you want the numbers of entries inside a specific field you will need to use another way around...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old May 14th, 2007, 01:55 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Say dextergaisie:
When you use all capital letters, it has the effect of shouting. To compound that by using bold as well makes your post hard to read—hard on the eyes.

Please observe the way the answers you got are formatted, and try to post questions formatted similarly.
 
Old May 15th, 2007, 05:50 AM
Authorized User
 
Join Date: May 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by BrianWren
 Say dextergaisie:
When you use all capital letters, it has the effect of shouting. To compound that by using bold as well makes your post hard to read—hard on the eyes.

Please observe the way the answers you got are formatted, and try to post questions formatted similarly.
OK.Thamks for the advice.
Best regards dextergaisie.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Trimming Words Nicky_uk Classic ASP Databases 5 February 21st, 2008 02:06 PM
spacing in between the words ramank Classic ASP Basics 1 November 20th, 2006 07:25 AM
why I can't use Chinese words? cash JSP Basics 4 February 19th, 2004 10:47 PM
generating words kozam C++ Programming 1 September 30th, 2003 12:55 PM
generating words kozam C++ Programming 1 September 30th, 2003 12:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.