24 Sep
2008
24 Sep
'08
8:09 p.m.
On Tue, 23 Sep 2008 17:19:21 -0500, <mslamin@gmail.com> wrote:
How do I insert a list into a single field of a single record in the database?
Besides the other mentioned solutions, declare a blob field and insert it as a string. That way it is simple to read when using any SQL tool to view the database.
select tm,runs from mlb where tm="DET" order by key desc limit 1; +-----+---------------------+ | tm | runs | +-----+---------------------+ | DET | (0 0 0 0 0 0 0 0 0) | +-----+---------------------+
later, read-from-string fixes you up. -- One of the strokes of genius from McCarthy was making lists the center of the language - kt