|
-
Aug 7th, 2001, 02:44 AM
#1
Thread Starter
New Member
How to search in database
When a text is being specified in a text field like "ar", database needs to be searched for a bookname starting with "ar" or any book name with that word.
-
Aug 7th, 2001, 02:56 AM
#2
Hyperactive Member
How about usign this Query, provided its SQL Server u r using....
Select BOOK_NAME from TABLE where TEXTFIELD like "%ar%"
Note: Pls change the Words in Capitals to the appropriate values in the Select Query
Hope this helps.
- Jemima.
-
Aug 7th, 2001, 02:58 AM
#3
Black Cat
Use your database's wildcard character (* for Access, % for SQL Server, etc) which the LIKE statement:
Code:
SELECT * FROM Table1
WHERE SomeName LIKE 'ar%'
Gets any records in table1 where somename starts with 'ar'.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
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
|