Q1:自己试试不就知道了吗?
Q3:删除之前先select count(*) from tablename where **=** 如果返回值小于1,呵呵
当然如果是使用jdbc之类的数据库访问技术,executeUpdate会返回受影响的行数
Q3:删除之前先select count(*) from tablename where **=** 如果返回值小于1,呵呵
当然如果是使用jdbc之类的数据库访问技术,executeUpdate会返回受影响的行数
主要有PUT和GET例程
PUT有:PUT,PUT_LINE,NEW_LINE
GET:GET_LINE,GET_LINES
ENABLE,DISABLE用于控制缓冲区
用游標的方法可以實現但是比較繁,有沒有什麽比較簡潔的方法判斷
Q3:如何捕捉delete from tablename where **=**,条件不符没有删除数据的情况?
填写时就判断。
Q2:ENABLE procedure Enables message output.
DISABLE procedure Disables message output.
PUT and PUT_LINE procedures Places a line in the buffer.
PUT and PUT_LINE procedures Places partial line in buffer.
NEW_LINE procedure Terminates a line created with PUT.
GET_LINE and GET_LINES procedures Retrieves one line, or an array of lines, from buffer.
q3:这种情况最好使用select先判断有无被删除的记录