Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Databases Also see the forum ASP Databases for more general discussions of ASP database issues not directly related to these books.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Databases 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 December 11th, 2003, 08:42 AM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create dynamic Where clause in Oracle SP

Hi,

I have a web page where users can search for customers by filling in a form which has the following feilds: -

Title
Firstname
Surname
Address1
Address2
Postcode
Telephone No

There is a customer table with the above columns.

The problem I have is the user can type any combination of the above fields i.e. they might type in the title and address1.

I need to create a dynamic SQL script such as
SELECT * FROM CUSTOMER
WHERE colX = varX

Can anyone suggest a solution please?







Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle SP itvenky Oracle 2 November 23rd, 2006 03:13 AM
fill dataset with oracle sp p2pMember ASP.NET 1.0 and 1.1 Professional 1 October 4th, 2006 04:19 AM
Using a Pass-Through Query to call an Oracle SP Richelou Access VBA 1 September 17th, 2004 04:56 AM
Stored Procedure - Dynamic Where Clause Terry_Pino BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 2nd, 2004 04:39 PM
Using a SP result set in a FROM clause Bernard Omiple SQL Server 2000 1 October 3rd, 2003 05:38 AM





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