🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #187

using an array as part of a table

#187
From: Don Bowen
Date: Mon, 21 Jul 2008 01:20
18 lines
1357 bytes
if I define

list varchar(25)[3],

how do I then set list[2]='some value';

Firebird chokes when I attempt to set a value by referencing the 
subscript... as list[2] or list(2) or list.2...

update student
    set list[2] = 'fred'
    where ID='0001';

why allow arrays if you can't set array item values?

thanks in advance for your help!
cheers,
Don B.
Technical Details
Message-ID: <PvRgk.2966$8R1.366@newsfe03.iad>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer03.iad!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad!newsfe03.iad.POSTED!7564ea0f!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,2d804a11d6d0003a,start
X-Google-Attributes: gid114a0e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer03.iad!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad!newsfe03.iad.POSTED!7564ea0f!not-for-mail
From: Don Bowen <don@bowen2.com>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
Newsgroups: borland.public.interbase.sql
Subject: using an array as part of a table
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 18
Message-ID: <PvRgk.2966$8R1.366@newsfe03.iad>
NNTP-Posting-Host: cefdobdhnbohhlpcboecieaogegfbfcl
X-Complaints-To: abuse@charter.net
X-Trace: ejcgghfdebcllckhelpgibjinfhnghafohammkekhcahbkgncefdobdhnbohhlpcmpdffakbjajpgmaaopmnbignncdfhlkmjinhbepemglanopeeioldbbdpphbooegofbanfllipfpcbfd
NNTP-Posting-Date: Mon, 21 Jul 2008 01:20:47 UTC
Date: Sun, 20 Jul 2008 18:20:50 -0700