in reply to Re^2: OT - SQL choosing a schema for index tables
in thread OT - SQL choosing a schema for index tables
SELECT id from tree_field_index WHERE ( (field='usage' AND name='cider') OR (field='usage' AND name='juicer') ) AND (field='flowering' AND name='spring') AND (field='ripe' AND name='autumn')
This won't work. The select statement gets applied to each record in turn.You can't have a single record where field='usage' AND field='flowering' so the result will be nothing.
Which database are you using, and how many records roughly are you dealing with ?
poj
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: OT - SQL choosing a schema for index tables
by bangor (Monk) on Aug 28, 2015 at 13:19 UTC | |
by poj (Abbot) on Aug 28, 2015 at 13:44 UTC | |
by bangor (Monk) on Aug 28, 2015 at 14:09 UTC | |
by poj (Abbot) on Aug 28, 2015 at 14:17 UTC |