Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the 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
Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: Old Pedant
Forum: SQL Language July 9th, 2008, 02:37 PM
Replies: 4
Views: 1,068
Posted By Old Pedant
I just left out the END keyword. I dunno...

I just left out the END keyword.

I dunno why, but I do that all the time.

CREATE PROC demo
@dd1 INT, @dd2 INT, @dd3 INT
AS
SELECT * FROM table
WHERE ( CASE WHEN @dd1 = 0 THEN dd1 ELSE @dd1...
Forum: SQL Language July 8th, 2008, 03:30 PM
Replies: 4
Views: 1,068
Posted By Old Pedant
Well, if you use an ad hoc query, instead of a...

Well, if you use an ad hoc query, instead of a stored proc, it's easy enough:

Use value="" for the defaults:

<SELECT name="dd1">
<OPTION value=0>Any</OPTION>
<OPTION value=1>First</OPTION>...
Showing results 1 to 2 of 2

 




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