请教高手execUpdate()and execute有时什么区别

解决方案 »

  1.   

    when you want to update/delete/create record  you can use excuteUpdate
    when you want to query records you can use executeQuery
    you can operate DML/DDL SQL ,you need to use execute methodabove information come from JDBC Specification/JSR???
      

  2.   

    DML
    就是update/delete/insert操纵语言
    那when you want to update/delete/create record  you can use excuteUpdate
    我用可以用execute method
      

  3.   

    那when you want to update/delete/create record  you can use excuteUpdate
    我用可以用execute method
    ==========================================================================
    yes, you are right, the statement object is unknow until run time
    you can use execute method......