I have a requirement to insert a row into a tab开发者_开发技巧le if a row does not already exist, and I need to do this using a stored procedure. I therefore need to select to check if the row already
I want to INSERT into one tables but prevent INSERTING to 开发者_如何学编程another one. It is possible to LOCK for example table a for INSERTING, INSERT to table b and then UNLOCK table a?
Investigating/researching mysql/myisam lo开发者_StackOverflow社区cking. trying to find a good example of how to set the lock in appA, and determine/detect the tbl lock in appB.
I have two objects: public class ParentObject { // some basic bean info } public class ChildObject extends ParentObject {