From: Dan Nelson Date: September 7 2005 10:03pm Subject: Re: Locking Methods List-Archive: http://lists.mysql.com/mysql/188838 Message-Id: <20050907220323.GA38838@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In the last episode (Sep 07), Rich said: > I started a different thread on this, but then I realized I might not > have to use InnoDB for this. > > Let me explain what I wish to achieve. > > I want to create records in an established table. I then want them > locked (either by locking the whole table or by individual record) so > that they cannot be updated or deleted. Permanently? Would revoking the UPDATE and DELETE privileges on the table (but keeping INSERT and SELECT) suffice? Locks are purely session-based and disappear when the client that issued them exits. > I am concerned that locking a table won't allow me to add new > records. I also need the records fully viewable. > > Which table format should I choose, and how do I implement this? > I've reviewed some of the alternatives, and they got all confusing to > me. 15.11.3 InnoDB and Transaction Isolation Level indicates that > READ COMMITTED is what I should be looking for, but it refers to an > index that I'm unaware of, as nothing is indexed. -- Dan Nelson dnelson@stripped