由于某种需要,更新某个字段的属性必须同时若干个表,如:
sql = "update TABLE1 set PARTNUMBER = 'A2304' where OBID='123';
stmt.executeUpdate( sql ) ; sql = "update TABLE2 set PARTNUMBER = 'A2304' where OBID='123';
stmt.executeUpdate( sql ) ; sql = "update TABLE3 set PARTNUMBER = 'A2304' where OBID='123';
stmt.executeUpdate( sql ) ; ……
以上是我采用的方法,一次更新一个表,请问朋友有没有什么简便高效的方法能实现上述功能
sql = "update TABLE1 set PARTNUMBER = 'A2304' where OBID='123';
stmt.executeUpdate( sql ) ; sql = "update TABLE2 set PARTNUMBER = 'A2304' where OBID='123';
stmt.executeUpdate( sql ) ; sql = "update TABLE3 set PARTNUMBER = 'A2304' where OBID='123';
stmt.executeUpdate( sql ) ; ……
以上是我采用的方法,一次更新一个表,请问朋友有没有什么简便高效的方法能实现上述功能
用JAVA,C,SHELL,TRIGER……都可以