Re: I need a 4D (may be 5D or 6D) data space

From: Bruce Lewis <brlspam_at_yahoo.com>
Date: 09 Jan 2002 09:18:15 -0500
Message-ID: <nm9d70j8v6g.fsf_at_buzzword-bingo.mit.edu>


Don't think of rows/cols as two dimensions. Here's a MySQL table that looks up descriptions in a two-dimensional space. It should be obvious how to extend it to an arbitrary number of dimensions.

CREATE TABLE IF NOT EXISTS brlewis_map (

        x integer NOT NULL,
        y integer NOT NULL,
        descr varchar (255) NOT NULL,
        PRIMARY KEY (x, y))

One of the demos at
  http://www.webappcabaret.com/brl/p/brlewis/index.brl uses this exact table.

-- 
<brlewis_at_[(if (brl-related? message)    ; Bruce R. Lewis

"users.sourceforge.net" ; http://brl.sourceforge.net/
"alum.mit.edu")]>
I rarely read mail sent to brlspam_at_yahoo.com
Received on Wed Jan 09 2002 - 15:18:15 CET

Original text of this message