🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1292

Delete fails on Local InterBase Table - Mutiple Records found

#1292
From: Francis Moore
Date: Wed, 18 Feb 1998 00:00
27 lines
1310 bytes
I am having a problem in deleting multiple records in a local InterBase
Table via Visual dBase (and Delphi).

In Visual dBase individual rows can be deleted in the Browser by
pressing Table Delete but not from the command window when using 'Delete

for 'FieldName' = 'Value' with a Database Engine Error :  Multiple
Records found, but only one was expected.

Local Share has been set to True in the BDE.

I have tried a workaround in SQL via Delphi

   with

       Delete
          From TableName
             where FieldName = 'Value'

and the BDE returns a 'Table is read only' error message.

Opening a Table and cycling through the records with Table.Delete within

an if test also gives a 'Multiple Records found' error message.

Can anyone assist.
Technical Details
Message-ID: <34EB4FF9.95F479C2@netcomuk.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,7bbb4f7a7a88022b,start
X-Google-Attributes: gidff5a1,public
From: Francis Moore <Moorefg@netcomuk.co.uk>
Subject: Delete fails on Local InterBase Table - Mutiple Records found
Date: 1998/02/18
Message-ID: <34EB4FF9.95F479C2@netcomuk.co.uk>
X-Deja-AN: 326345714
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Reply-To: moorefg@netcomuk.co.uk
Content-Type: text/plain; charset=us-ascii
Organization: None
Newsgroups: borland.public.vdbase.data.sql