在MySQL中,关于delete和truncate的区别,下列说法错误的是()。A.删除表中的部分记录,不可以使用truncate语句B.删除表中的部分记录,可以使用DELETE语句C.DELETE可以返回被删除的记录数,而TRUNCATE TABLE返回的是0。D.delete和truncate的区别只是返回记录数不同。
在MySQL中,关于delete和truncate的区别,下列说法错误的是()。
A.删除表中的部分记录,不可以使用truncate语句
B.删除表中的部分记录,可以使用DELETE语句
C.DELETE可以返回被删除的记录数,而TRUNCATE TABLE返回的是0。
D.delete和truncate的区别只是返回记录数不同。
参考答案和解析
删除表中部分记录,可以使用delete语句;delete可以返回被删除的记录数,而truncate返回的是0
相关考题:
关于mysql_fetch_object说法中,正确的是:()。 A.mysql_fetch_object和mysql_fetch_array一样,没什么区别B.mysql_fetch_object返回值是个对象,所以在速度上比mysql_fetch_array要慢C.mysql_fetch_object返回值是个数组,所以在速度上和mysql_fetch_array及mysql_fetch_row差不多D.mysql_fetch_object返回值是个对象,在速度上和mysql_fetch_array及mysql_fetch_row差不多
Consider the events_% tables in performance Schema.Which two methods will clear or reset the collected events in the tables?() A.Using DELETE statements, for example, DELETE FROM performance_schema.events_watis_currentB.Using the statement RESET PERFORMANCE CACHEC.Using the statement FLUSH PERFORMANCE CACHED.Using TRUNCATE statements, for example, TRUNATE TABLE performance_schema.events_waits_currentE.Disabling and re-enabling all instrumentsF.Restarting Mysql
若要删除book表中所有数据,以下语句错误的是哪两项?() A.delete all from bookB.delete from bookC.truncate table bookD.drop table book
mysql_connect()与@mysql_connect()的区别是()。A、@mysql_connect()不会忽略错误,将错误显示到客户端B、mysql_connect()不会忽略错误,将错误显示到客户端C、没有区别D、功能不同的两个函数
请问oracle的整表删除操作()是正确的。A、truncate table tablenameB、delete from tablenameC、delete*from tablenameD、以上都不对
ORACLE数据库中如何删除表table中的所有记录,并回收所有空间()A、delete * from tableB、delete from tableC、truncate tableD、clear table
关于Truncate table, 以下()描述是错误的。A、Truncate table 可跟Where从句,根据条件进行删除B、Truncate table 用来删除表中所有数据C、触发器对Truncate table无效D、delete 比Truncate table速度快
删除emp表的全部数据,但不提交,以下正确的语句是()A、DELETE * FROM. EMPB、DELETE FROM EMPC、TRUNCATE TABLE EMPD、DELETE TABLE EMP"
当删除父表中的数据时,在CREATE TABLE语句的外键定义中指定的()选项删除子表中的数据。A、ON TRUNCATE CASCADEB、ON DELETE CASCADEC、ON UPDATE CASCADED、A和C都是
以下关于MYSQL叙述中,错误的是()A、MYSQL是真正多线程、单用户的数据库系统B、MYSQL是真正支持多平台的C、MYSQL完全支持ODBCD、MYSQL可以在一次操作中从不同的数据库中混合表格
关于Truncatetable,以下()描述是正确的。A、Truncate table 可跟Where从句,根据条件进行删除B、Truncate table 用来删除表中所有数据C、触发器对Truncate table无效D、delete 比Truncate table速度快
关于Truncatetable,以下()描述是错误的。A、Truncate table可跟Where从句,根据条件进行删除。B、Truncate table用来删除表中所有数据。C、触发器对Truncate table无效。D、delete比Truncate table速度快。
若要删除book表中所有数据,以下语句错误的是()A、truncate table bookB、delete * from bookC、drop table bookD、delete from book
Consider the events_% tables in performance Schema. Which two methods will clear or reset the collected events in the tables?()A、Using DELETE statements, for example, DELETE FROM performance_schema.events_watis_currentB、Using the statement RESET PERFORMANCE CACHEC、Using the statement FLUSH PERFORMANCE CACHED、Using TRUNCATE statements, for example, TRUNATE TABLE performance_schema.events_waits_currentE、Disabling and re-enabling all instrumentsF、Restarting Mysql
有关Oracle9iTRUNCATE的描述,不正确的是()。A、TRUNCATE语句是整表删除B、TRUNCATE语句操作是可以回滚的C、TRUNCATE语句对表的操作速度比DELETE要快D、TRUNCATE语句对表的操作不能删除完整性约束条件,而DELETE操作可以删除
多选题Consider the events_% tables in performance Schema. Which two methods will clear or reset the collected events in the tables?()AUsing DELETE statements, for example, DELETE FROM performance_schema.events_watis_currentBUsing the statement RESET PERFORMANCE CACHECUsing the statement FLUSH PERFORMANCE CACHEDUsing TRUNCATE statements, for example, TRUNATE TABLE performance_schema.events_waits_currentEDisabling and re-enabling all instrumentsFRestarting Mysql
单选题关于mysql_fetch_object说法中,正确的是:()。Amysql_fetch_object和mysql_fetch_array一样,没什么区别Bmysql_fetch_object返回值是个对象,所以在速度上比mysql_fetch_array要慢Cmysql_fetch_object返回值是个数组,所以在速度上和mysql_fetch_array及mysql_fetch_row差不多Dmysql_fetch_object返回值是个对象,在速度上和mysql_fetch_array及mysql_fetch_row差不多
问答题数据库命令delete和truncate区别是什么?