• 2021-04-14
    stmt 为Statement对象,执行String sqlStatement=”delete from book where bid=’tp1001’”;语句后,删除数据库表的记录需要执行____语句
  • stmt.executeUpdate()

    内容

    • 0

      从学生表中删除学号为“1001”的学生记录,正确的SQL语句是______。 A: DELETE FROM 学生 WHERE 学号="1001" B: DROP FROM 学生 FOR 学号="1001" C: DROP FROM 学生 WHERE 学号="1001" D: DELETE FROM 学生 FOR 学号="1001"

    • 1

      从学生表中删除学号为“1001”的学生记录,正确的SQL语句是______。 A: DROP FROM Student WHERE 学号="1001" B: DROP FROM Student FOR 学号="1001" C: DELETE FROM Student WHERE 学号="1001" D: DELETE FROM Student FOR 学号="1001"

    • 2

      Statement对象提供了int executeQuery(String sqlStatement)方法,用于实现对数据库中数据的查询操作,执行后返回值为1。( )

    • 3

      从订单表中删除客户号为“1001“的订单记录,正确的SQL语句是()。 A: DROP FROM 订单 WHERE 客户号='1001' B: DROP FROM 订单 FOR 客户号='1001' C: DELETE FROM 订单 WHERE 客户号='1001' D: DELETE FROM 订单FOR 客户号='1001'

    • 4

      若要删除book表中所有数据,以下语句正确的是( )。 A: delete table book B: delete * from book C: drop book D: delete from book