home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!biosci!charleen
- From: charleen@net.bio.net (Charleen Bunjiovianna)
- Newsgroups: comp.databases.informix
- Subject: SOLVED: SQL 2.10.03 problem: cannot UPDATE table
- Message-ID: <Dec.17.16.31.50.1992.27639@net.bio.net>
- Date: 18 Dec 92 00:31:50 GMT
- Organization: BIOSCI International Newsgroups for Biology
- Lines: 36
-
- I wrote:
-
- >A user wants to delete a row from a table. The query:
- >
- >delete from ft
- >where entry_name = "P90589";
- >
- >dies with:
- >
- >263: Could not lock row for UPDATE.
- >
- >There is no possibility the table or row is being used by anyone
- >else. A number of other rows have been deleted from the same table
- >without incident. We've tried emptying the lock file. No luck.
-
- Turns out that some of the rows cannot be deleted with such a query
- because they have imbedded double quotes. Sorry, Informix, but this
- and accompanying error messages were not helpful in finding the cause
- of the problem.
-
- There are only two columns in this table, entry_name and comments,
- and doing this worked:
-
- delete from ft
- where entry_name = "P90589" and comments matches '*"*';
-
- delete from ft
- where entry_name = "P90589";
-
- We had to do this for each entry_name where the entry_name was marked
- for deletion.
-
- Thanks to those who replied.
-
- Charleen
-
-