NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
how about using IN? (Score:1)
Re: (Score:2)
Enough SQL Re:how about using IN? (Score:1)
O'Reilly has some general titles in both portable paperback [oreilly.com] and online formats such as SQL Cookbook [safaribooksonline.com] , SQL Hacks [safaribooksonline.com] , SQL Pocket Guide, 2nd Ed [safaribooksonline.com] , Head First SQL [safaribooksonline.com] , SQL in a Nutshell, 3rd Ed [safaribooksonline.com]. I mention these since they're not specific to any one vendor.
The DB vendor website should have online docs for how much of latest ANSI spec each release has implemented with what divergences (to be polite). I frequently have the MySQL website's manual section open when working on my dot.org site SQL, since their s
Bill
# I had a sig when sigs were cool
use Sig;
Re: (Score:2)
Re: (Score:2)
I will (possibly) fail when the list of word in the 'IN'-clause gets long enough.
I had problems with clauses longer than approx 100_000 in an old version of Ingres.
The solution was to create a temporary table with all the words and then use this in the 'IN'-clause.
CREATE TEMPORARY TABLE words(word VARCHAR(100)); ....
INSERT INTO words VALUES('aaaaa');
INSERT INTO words VALUES('xxxxx');
SELECT word FROM dict WHERE word IN (SELECT word FROM WORDS);
(SQl-code is suboptimal, but you
Not that complex (Score:1)