-
Passing parameters with like
I was wondering I am able to pass a parameter but I want it to be like a string search. It is a persons name so if I wrote in Dan I want to be able for it to find Daniel. Thanks for any help.
-
What kind of database? In SQL Server, you may either pass 'Dan%' as the parameter, or add the wildcard character within the stored procedure, e.g.:
SELECT * FROM TableName
WHERE Column LIKE (@param + '%')
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
Similar Threads
-
Replies: 1
Last Post: 06-14-2002, 03:49 PM
-
By Andrew McLellan in forum Java
Replies: 4
Last Post: 12-07-2001, 02:55 PM
-
By Michael Shutt in forum VB Classic
Replies: 2
Last Post: 12-29-2000, 07:55 AM
-
By Robert Boudra in forum VB Classic
Replies: 3
Last Post: 12-19-2000, 11:44 AM
-
By David in forum VB Classic
Replies: 2
Last Post: 06-21-2000, 10:09 AM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks