home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / informix / 2742 < prev    next >
Encoding:
Internet Message Format  |  1992-12-18  |  1.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!biosci!charleen
  2. From: charleen@net.bio.net (Charleen Bunjiovianna)
  3. Newsgroups: comp.databases.informix
  4. Subject: SOLVED: SQL 2.10.03 problem:  cannot UPDATE table
  5. Message-ID: <Dec.17.16.31.50.1992.27639@net.bio.net>
  6. Date: 18 Dec 92 00:31:50 GMT
  7. Organization: BIOSCI International Newsgroups for Biology
  8. Lines: 36
  9.  
  10. I wrote:
  11.  
  12. >A user wants to delete a row from a table.  The query:
  13. >
  14. >delete from ft
  15. >where entry_name = "P90589";
  16. >
  17. >dies with:
  18. >
  19. >263: Could not lock row for UPDATE.
  20. >
  21. >There is no possibility the table or row is being used by anyone
  22. >else.  A number of other rows have been deleted from the same table
  23. >without incident.  We've tried emptying the lock file.  No luck.
  24.  
  25. Turns out that some of the rows cannot be deleted with such a query
  26. because they have imbedded double quotes.  Sorry, Informix, but this
  27. and accompanying error messages were not helpful in finding the cause
  28. of the problem.  
  29.  
  30. There are only two columns in this table, entry_name and comments,
  31. and doing this worked:
  32.  
  33. delete from ft
  34. where entry_name = "P90589" and comments matches '*"*';
  35.  
  36. delete from ft
  37. where entry_name = "P90589";
  38.  
  39. We had to do this for each entry_name where the entry_name was marked
  40. for deletion.
  41.  
  42. Thanks to those who replied.
  43.  
  44. Charleen
  45.  
  46.