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)
Re:how about using IN? (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 get the idea I hope).
Reply to This
Parent