• 回答数

    7

  • 浏览数

    187

哇小妹夫
首页 > 英语培训 > truncate英语

7个回答 默认排序
  • 默认排序
  • 按时间排序

旭子如风

已采纳

butch haircut

truncate英语

179 评论(12)

大大大华哥呢

drop、truncate和delete的区别(1)DELETE语句执行删除的过程是每次从表中删除一行,并且同时将该行的删除操作作为事务记录在日志中保存以便进行进行回滚操作。 TRUNCATE TABLE 则一次性地从表中删除所有的数据并不把单独的删除操作记录记入日志保存,删除行是不能恢复的。并且在删除的过程中不会激活与表有关的删除触发器。执行速度快。(2)表和索引所占空间。 当表被TRUNCATE 后,这个表和索引所占用的空间会恢复到初始大小, DELETE操作不会减少表或索引所占用的空间。 drop语句将表所占用的空间全释放掉。(3)一般而言,drop > truncate > delete(4)应用范围。 TRUNCATE 只能对TABLE; DELETE可以是table和view(5)TRUNCATE 和DELETE只删除数据, DROP则删除整个表(结构和数据)。(6)truncate与不带where的delete :只删除数据,而不删除表的结构(定义)drop语句将删除表的结构被依赖的约束(constrain),触发器(trigger)索引(index);依赖于该表的存储过程/函数将被保留,但其状态会变为:invalid。(7)delete语句为DML(data maintain Language),这个操作会被放到 rollback segment中,事务提交后才生效。如果有相应的 tigger,执行的时候将被触发。(8)truncate、drop是DLL(data define language),操作立即生效,原数据不放到 rollback segment中,不能回滚(9)在没有备份情况下,谨慎使用 drop 与 truncate。要删除部分数据行采用delete且注意结合where来约束影响范围。回滚段要足够大。要删除表用drop;若想保留表而将表中数据删除,如果于事务无关,用truncate即可实现。如果和事务有关,或老师想触发trigger,还是用delete。(10) Truncate table 表名 速度快,而且效率高,因为: truncate table 在功能上与不带 WHERE 子句的 DELETE 语句相同:二者均删除表中的全部行。但 TRUNCATE TABLE 比 DELETE 速度快,且使用的系统和事务日志资源少。DELETE 语句每次删除一行,并在事务日志中为所删除的每行记录一项。TRUNCATE TABLE 通过释放存储表数据所用的数据页来删除数据,并且只在事务日志中记录页的释放。 (11) TRUNCATE TABLE 删除表中的所有行,但表结构及其列、约束、索引等保持不变。新行标识所用的计数值重置为该列的种子。如果想保留标识计数值,请改用 DELETE。如果要删除表定义及其数据,请使用 DROP TABLE 语句。 (12) 对于由 FOREIGN KEY 约束引用的表,不能使用 TRUNCATE TABLE,而应使用不带 WHERE 子句的 DELETE 语句。由于 TRUNCATE TABLE 不记录在日志中,所以它不能激活触发器。一、delete1、delete是DML,执行delete操作时,每次从表中删除一行,并且同时将该行的的删除操作记录在redo和undo表空间中以便进行回滚(rollback)和重做操作,但要注意表空间要足够大,需要手动提交(commit)操作才能生效,可以通过rollback撤消操作。2、delete可根据条件删除表中满足条件的数据,如果不指定where子句,那么删除表中所有记录。3、delete语句不影响表所占用的extent,高水线(high watermark)保持原位置不变。二、truncate1、truncate是DDL,会隐式提交,所以,不能回滚,不会触发触发器。2、truncate会删除表中所有记录,并且将重新设置高水线和所有的索引,缺省情况下将空间释放到minextents个extent,除非使用reuse storage,。不会记录日志,所以执行速度很快,但不能通过rollback撤消操作(如果一不小心把一个表truncate掉,也是可以恢复的,只是不能通过rollback来恢复)。3、对于外键(foreignkey )约束引用的表,不能使用 truncate table,而应使用不带 where 子句的 delete 语句。4、truncatetable不能用于参与了索引视图的表。三、drop1、drop是DDL,会隐式提交,所以,不能回滚,不会触发触发器。2、drop语句删除表结构及所有数据,并将表所占用的空间全部释放。3、drop语句将删除表的结构所依赖的约束,触发器,索引,依赖于该表的存储过程/函数将保留,但是变为invalid状态。 总结:1、在速度上,一般来说,drop> truncate > delete。2、在使用drop和truncate时一定要注意,虽然可以恢复,但为了减少麻烦,还是要慎重。3、如果想删除部分数据用delete,注意带上where子句,回滚段要足够大; 如果想删除表,当然用drop; 如果想保留表而将所有数据删除,如果和事务无关,用truncate即可; 如果和事务有关,或者想触发trigger,还是用delete; 如果是整理表内部的碎片,可以用truncate跟上reuse stroage,再重新导入/插入数据。

181 评论(15)

木雨大大雯

goole在线翻译2, smoky fault repair smoky vehicle petrol consumption, the frequent damage to spark plugs, the voice of nausea, inability to accelerate. Smoky fault phenomena of the following two. 1, Idle smoky fault phenomena : Idling vehicle exhaust fumes obviously, Exhaust sound boring (sometimes wonder muffler damaged), activated enlarge accelerator can be activated. Fault : (1) Idle capacity Kong transfer. (2) Float-high oil Room; (3) activated enriched valve not closed; (4) Oil Needle and the main nozzle with too much space. For the following solutions : (a) the replacement of the smaller pore volume Idle. (2) adjusting the height of the bobber, bobber observation room to the oil-bobber Room 2 / 5 namely, the oil-normal (note unpick covered under observation Yau spaces, the carburetor must just stand against the spreading out of petrol, causing oil to judge who are not accurate). (3) activated valve has been enhanced, there are three forms : manual plunger enriched valve and plunger vacuum diaphragm valve has been enhanced, Electric plunger enriched valve. Manual plunger enriched relatively simple valve repair, cleaning plunger through, the replacement of a spring or cable solution to problem. Diaphragm Vacuum - Saiga concentrated mainly check valve vacuum tubes and vacuum diaphragm whether rupture, leakage. Electric plunger enriched valve general electric heating element is damaged and electricity line fault, electric heating element damage in need of replacement. (4) Oil Needle and the main nozzle with too much space should be the new standard replacement parts. 2, the high-speed smoky fault phenomena boreal switch over to the exhaust fumes when obviously, high-speed power vehicles are obviously inadequate. Fault : (1) air inlet filter or block access; (2) Major-sectional area too large; (3) the main nozzle with the oil combined with too much space; (4) Oil-high. Solutions : (a) clean or replace the air filter paper filter heart; (2) replacement of small cross-sectional area of the main pore volume.

131 评论(15)

zjxlhzyt虹

computational adj. 计算的,电脑的 mode n. 模式 primitive n. 原始、基元,是后续操作的基础 gigabyte n. 千兆字节,是数据单位 storage n. 储存体, 仓库 retrieve n. 检索,恢复 algorithm n. 算法 accomplish vt. 完成 scheme n. 方案, 计划, v. 设计, 体系, 结构, compute vt. 计算 code n. 码,密码 vt. 把…编码 halt v 停止 computation n. 计算,计算方法,计算结果 knowledge n. 知识,了解 declarative adj. 说明的, 陈述的 declarative knowledge 陈述性知识 imperative adj. 命令式的,互动的 imperative knowledge 互动性知识 recipe n. 挂起,暂停 evaluate vt. 评估,评价 square root 平方根 the square root of a number x x的平方根 deduce vt. 演绎,推断 capture vt. 采集,描绘,制作 fix vt. &vi.修理,安装 calculator n. 计算器 decode v. 解码, 译解 [计算机] 译码 enigma n. 谜 manipulate v. [计算机] 操作 instruction n. 指令,说明 set n.集合 predefined set 预设集合 arithmetic n. 算术,运算 store n. (在计算机里)存贮;记忆 test n.vt. 测试 execute vt. [计算机] 执行 source n. 来源 source code 源代码 sequence n. 序列, 一系列, 顺序 architecture n.体系结构 abstract n.简化,抽象 computable adj. 可计算的 mechanism n. 机制 syntax n. 语法 (规范代码的结构,成分和顺序上正确) 02static adj. 静态的 ambiguous adj. 歧义的 unpredictable adj. 不可预知的 intend v. 打算 (打算使之成为。。。) crash n 崩溃,停止运行 algorithmic adj.[计]算法的,规则系统的 process n.过程,进程,步骤 programming language n.程序设计语言 checker n. 检验器, 检查员 internal adj. 内部的 interpreter n. 解释器 compiler n. [计算机]编译器, 编译程序 invert v. 使反向;invert a matrix反转矩阵 abstraction n. 抽象, 参数化 converter n. 转换器 =convertor script n. 脚本 definition n. 清晰度 command n. [计算机]指令;命令 shell n.[计算机] DOS命令 ,壳 instruct [计算机] 指示 object n. 对象 type n.类型 scalar 标量(的) represent vt. 代表 integer [计算机] 整数 int 整型 float n. 浮点型 const abbr. 常数(=constant) expression 表达式 denote vt. 表示,意味着 sum n. 总数(计) vi. 总计 difference n. 差 product n. 乘积 division n. 除法 quotient n. 商 remainder n. 余数,余 power n.次方,幂 operator n. 运算符 precedence n. 优先 truncate vt. 舍位 indicate v.说明,指示 decimal n.十进制 arbitrary adj. 任意的 variable adj. 可变的 n. 变量 value n. 值 assignment n. 赋值 bind vt. 绑定invoke [计算机] 调用 binding n.绑定关系 rebound n. 回跳,反弹 diagram n. 图解,关系图 transcript n. 抄本,脚本 compound n. 混合物,复合词 literal [计算机] 文字的,文本 quote n. 引用 quotes引号 character n. 字符 extract [计算机] 提取、取值、查看 index n.索引 boundary n. 分界线, 边界boundaries 边界 slice n. 薄的切片,一部份,锅铲 vt. 切成薄片,大幅降低 essentially adv. 基本上

250 评论(8)

神采飞扬0829

2, smoky fault repair smoky vehicle petrol consumption, the frequent damage to spark plugs, the voice of nausea, inability to accelerate. Smoky fault phenomena of the following two. 1, Idle smoky fault phenomena : Idling vehicle exhaust fumes obviously, Exhaust sound boring (sometimes wonder muffler damaged), activated enlarge accelerator can be activated. Fault : (1) Idle capacity Kong transfer. (2) Float-high oil Room; (3) activated enriched valve not closed; (4) Oil Needle and the main nozzle with too much space. For the following solutions : (a) the replacement of the smaller pore volume Idle. (2) adjusting the height of the bobber, bobber observation room to the oil-bobber Room 2 / 5 namely, the oil-normal (note unpick covered under observation Yau spaces, the carburetor must just stand against the spreading out of petrol, causing oil to judge who are not accurate). (3) activated valve has been enhanced, there are three forms : manual plunger enriched valve and plunger vacuum diaphragm valve has been enhanced, Electric plunger enriched valve. Manual plunger enriched relatively simple valve repair, cleaning plunger through, the replacement of a spring or cable solution to problem. Diaphragm Vacuum - Saiga concentrated mainly check valve vacuum tubes and vacuum diaphragm whether rupture, leakage. Electric plunger enriched valve general electric heating element is damaged and electricity line fault, electric heating element damage in need of replacement. (4) Oil Needle and the main nozzle with too much space should be the new standard replacement parts. 2, the high-speed smoky fault phenomena boreal switch over to the exhaust fumes when obviously, high-speed power vehicles are obviously inadequate. Fault : (1) air inlet filter or block access; (2) Major-sectional area too large; (3) the main nozzle with the oil combined with too much space; (4) Oil-high. Solutions : (a) clean or replace the air filter paper filter heart; (2) replacement of small cross-sectional area of the main pore volume.

183 评论(11)

王凡Angela

1、清除数据英文是clear data。 2、Clear,英语单词,名词、形容词、动词、副词,作名词时译为“(美)克利尔(人名);清除;空隙”,作形容词时译为“清楚的;清澈的;晴朗的;无罪的”,作动词时译为“通过;清除;使干净;跳过;放晴;变清澈”,作副词时译为“清晰地;完全地”。 3、data,英文单词,名词,作名词时意为“数据(datum的复数);资料,人名;(日)驮太(姓);(印、葡)达塔”。

清除数据,Clear data、双语对照,词典结果:清除数据,clear data;purge data;例句:1.从视图状态加载数据集之前清除数据集。Clear datasets before loading them from view state.祝你生活愉快,学习进步! 相似短语 It is clear that...很明显,显而易见 it is clear that 很清楚/明确... be clear 清楚 clear withvt.经正式批准 in clearadv.用普通文字 clear tovt.对...是清楚的 clear of 畅通的,无阻的;清除了···的;无,没有 clear in【经】办理海关进口手续 to clear采伐 in the clear 不受阻碍的,不欠债务的,无罪的,无嫌疑的

153 评论(14)

明亮宜家

用软件就可以了嘛

291 评论(13)

相关问答