1. 程式人生 > >RMAN DELETE INPUT和DELETE ALL INPUT的區別

RMAN DELETE INPUT和DELETE ALL INPUT的區別

1.首先檢查一下歸檔的路徑

[email protected] > show parameter archive

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
archive_lag_target                   integer     0
log_archive_config                   string
log_archive_dest                     string
log_archive_dest_1 string location=/home/oracle/app/arch ive log_archive_dest_10 string log_archive_dest_11 string log_archive_dest_12 string log_archive_dest_13 string
log_archive_dest_14 string log_archive_dest_15 string NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ log_archive_dest_16 string log_archive_dest_17 string
log_archive_dest_18 string log_archive_dest_19 string log_archive_dest_2 string location=/home/oracle/app/fast _recovery_area/prod2

有兩個歸檔路徑log_archive_dest_1,log_archive_dest_2

2.使用rman列出目標庫的歸檔日誌

RMAN> list archivelog all;

397     1    48      A 25-OCT-15
        Name: /home/oracle/app/archive/1_48_892652515.dbf

398     1    49      A 26-OCT-15
        Name: /home/oracle/app/archive/1_49_892652515.dbf

399     1    50      A 26-OCT-15
        Name: /home/oracle/app/archive/1_50_892652515.dbf

400     1    51      A 27-OCT-15
        Name: /home/oracle/app/archive/1_51_892652515.dbf

401     1    52      A 27-OCT-15
        Name: /home/oracle/app/archive/1_52_892652515.dbf

402     1    53      A 28-OCT-15
        Name: /home/oracle/app/archive/1_53_892652515.dbf

403     1    53      A 28-OCT-15
        Name: /home/oracle/app/fast_recovery_area/prod2/1_53_892652515.dbf

404     1    54      A 28-OCT-15
        Name: /home/oracle/app/archive/1_54_892652515.dbf

405     1    54      A 28-OCT-15
        Name: /home/oracle/app/fast_recovery_area/prod2/1_54_892652515.dbf

406     1    55      A 28-OCT-15
        Name: /home/oracle/app/archive/1_55_892652515.dbf

407     1    55      A 28-OCT-15
        Name: /home/oracle/app/fast_recovery_area/prod2/1_55_892652515.dbf

408     1    56      A 28-OCT-15
        Name: /home/oracle/app/archive/1_56_892652515.dbf

409     1    56      A 28-OCT-15
        Name: /home/oracle/app/fast_recovery_area/prod2/1_56_892652515.dbf

410     1    57      A 28-OCT-15
        Name: /home/oracle/app/archive/1_57_892652515.dbf

411     1    57      A 28-OCT-15
        Name: /home/oracle/app/fast_recovery_area/prod2/1_57_892652515.dbf

可以看到53之前的日誌只有一個歸檔路徑,之後的有兩個歸檔路徑

3.我們使用delete input看一下結果

RMAN> backup archivelog all delete input;

Starting backup at 28-OCT-15
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=267 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=16 device type=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: SID=98 device type=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: SID=182 device type=DISK
channel ORA_DISK_1: starting compressed archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=3 RECID=352 STAMP=892677675
input archived log thread=1 sequence=4 RECID=353 STAMP=892678596
input archived log thread=1 sequence=5 RECID=354 STAMP=892687714
input archived log thread=1 sequence=6 RECID=355 STAMP=892708411
input archived log thread=1 sequence=7 RECID=356 STAMP=892718054
input archived log thread=1 sequence=8 RECID=357 STAMP=892718173
input archived log thread=1 sequence=9 RECID=358 STAMP=892718473
input archived log thread=1 sequence=10 RECID=359 STAMP=892749728
input archived log thread=1 sequence=11 RECID=360 STAMP=892765363
input archived log thread=1 sequence=12 RECID=361 STAMP=892792842
input archived log thread=1 sequence=13 RECID=362 STAMP=892817313
input archived log thread=1 sequence=14 RECID=363 STAMP=892850671
input archived log thread=1 sequence=15 RECID=364 STAMP=892864836
input archived log thread=1 sequence=16 RECID=365 STAMP=892892271
channel ORA_DISK_1: starting piece 1 at 28-OCT-15
channel ORA_DISK_2: starting compressed archived log backup set
channel ORA_DISK_2: specifying archived log(s) in backup set
input archived log thread=1 sequence=17 RECID=366 STAMP=892910475
input archived log thread=1 sequence=18 RECID=367 STAMP=892939309
input archived log thread=1 sequence=19 RECID=368 STAMP=892980037
input archived log thread=1 sequence=20 RECID=369 STAMP=893025820
input archived log thread=1 sequence=21 RECID=370 STAMP=893044821
input archived log thread=1 sequence=22 RECID=371 STAMP=893109645
input archived log thread=1 sequence=23 RECID=372 STAMP=893112349
input archived log thread=1 sequence=24 RECID=373 STAMP=893190737
input archived log thread=1 sequence=25 RECID=374 STAMP=893198839
input archived log thread=1 sequence=26 RECID=375 STAMP=893260831
input archived log thread=1 sequence=27 RECID=376 STAMP=893290748
input archived log thread=1 sequence=28 RECID=377 STAMP=893311245
input archived log thread=1 sequence=29 RECID=378 STAMP=893358035
channel ORA_DISK_2: starting piece 1 at 28-OCT-15
channel ORA_DISK_3: starting compressed archived log backup set
channel ORA_DISK_3: specifying archived log(s) in backup set
input archived log thread=1 sequence=30 RECID=379 STAMP=893397618
input archived log thread=1 sequence=31 RECID=380 STAMP=893437206
input archived log thread=1 sequence=32 RECID=381 STAMP=893463766
input archived log thread=1 sequence=33 RECID=382 STAMP=893541621
input archived log thread=1 sequence=34 RECID=383 STAMP=893550271
input archived log thread=1 sequence=35 RECID=384 STAMP=893628016
input archived log thread=1 sequence=36 RECID=385 STAMP=893636762
input archived log thread=1 sequence=37 RECID=386 STAMP=893680197
input archived log thread=1 sequence=38 RECID=387 STAMP=893723265
input archived log thread=1 sequence=39 RECID=388 STAMP=893727390
input archived log thread=1 sequence=40 RECID=389 STAMP=893800830
input archived log thread=1 sequence=41 RECID=390 STAMP=893809792
channel ORA_DISK_3: starting piece 1 at 28-OCT-15
channel ORA_DISK_4: starting compressed archived log backup set
channel ORA_DISK_4: specifying archived log(s) in backup set
input archived log thread=1 sequence=42 RECID=391 STAMP=893887217
input archived log thread=1 sequence=43 RECID=392 STAMP=893894493
input archived log thread=1 sequence=44 RECID=393 STAMP=893916038
input archived log thread=1 sequence=45 RECID=394 STAMP=893977209
input archived log thread=1 sequence=46 RECID=395 STAMP=893998835
input archived log thread=1 sequence=47 RECID=396 STAMP=894034820
input archived log thread=1 sequence=48 RECID=397 STAMP=894067506
input archived log thread=1 sequence=49 RECID=398 STAMP=894146417
input archived log thread=1 sequence=50 RECID=399 STAMP=894154008
input archived log thread=1 sequence=51 RECID=400 STAMP=894232821
input archived log thread=1 sequence=52 RECID=401 STAMP=894240522
input archived log thread=1 sequence=53 RECID=402 STAMP=894278467
channel ORA_DISK_4: starting piece 1 at 28-OCT-15
channel ORA_DISK_1: finished piece 1 at 28-OCT-15
piece handle=/home/oracle/rmanback/backupPROD2_124_3sqkr73s_1_1.bak tag=TAG20151028T104619 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:02:37
channel ORA_DISK_1: deleting archived log(s)
archived log file name=/home/oracle/app/archive/1_3_892652515.dbf RECID=352 STAMP=892677675
archived log file name=/home/oracle/app/archive/1_4_892652515.dbf RECID=353 STAMP=892678596
archived log file name=/home/oracle/app/archive/1_5_892652515.dbf RECID=354 STAMP=892687714
archived log file name=/home/oracle/app/archive/1_6_892652515.dbf RECID=355 STAMP=892708411
archived log file name=/home/oracle/app/archive/1_7_892652515.dbf RECID=356 STAMP=892718054
archived log file name=/home/oracle/app/archive/1_8_892652515.dbf RECID=357 STAMP=892718173
archived log file name=/home/oracle/app/archive/1_9_892652515.dbf RECID=358 STAMP=892718473
archived log file name=/home/oracle/app/archive/1_10_892652515.dbf RECID=359 STAMP=892749728
archived log file name=/home/oracle/app/archive/1_11_892652515.dbf RECID=360 STAMP=892765363
archived log file name=/home/oracle/app/archive/1_12_892652515.dbf RECID=361 STAMP=892792842
archived log file name=/home/oracle/app/archive/1_13_892652515.dbf RECID=362 STAMP=892817313
archived log file name=/home/oracle/app/archive/1_14_892652515.dbf RECID=363 STAMP=892850671
archived log file name=/home/oracle/app/archive/1_15_892652515.dbf RECID=364 STAMP=892864836
archived log file name=/home/oracle/app/archive/1_16_892652515.dbf RECID=365 STAMP=892892271
channel ORA_DISK_1: starting compressed archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=54 RECID=404 STAMP=894278583
input archived log thread=1 sequence=55 RECID=406 STAMP=894278584
input archived log thread=1 sequence=56 RECID=409 STAMP=894278585
input archived log thread=1 sequence=57 RECID=410 STAMP=894278588
input archived log thread=1 sequence=58 RECID=412 STAMP=894278778
channel ORA_DISK_1: starting piece 1 at 28-OCT-15
channel ORA_DISK_4: finished piece 1 at 28-OCT-15
piece handle=/home/oracle/rmanback/backupPROD2_127_3vqkr73u_1_1.bak tag=TAG20151028T104619 comment=NONE
channel ORA_DISK_4: backup set complete, elapsed time: 00:02:41
channel ORA_DISK_4: deleting archived log(s)
archived log file name=/home/oracle/app/archive/1_42_892652515.dbf RECID=391 STAMP=893887217
archived log file name=/home/oracle/app/archive/1_43_892652515.dbf RECID=392 STAMP=893894493
archived log file name=/home/oracle/app/archive/1_44_892652515.dbf RECID=393 STAMP=893916038
archived log file name=/home/oracle/app/archive/1_45_892652515.dbf RECID=394 STAMP=893977209
archived log file name=/home/oracle/app/archive/1_46_892652515.dbf RECID=395 STAMP=893998835
archived log file name=/home/oracle/app/archive/1_47_892652515.dbf RECID=396 STAMP=894034820
archived log file name=/home/oracle/app/archive/1_48_892652515.dbf RECID=397 STAMP=894067506
archived log file name=/home/oracle/app/archive/1_49_892652515.dbf RECID=398 STAMP=894146417
archived log file name=/home/oracle/app/archive/1_50_892652515.dbf RECID=399 STAMP=894154008
archived log file name=/home/oracle/app/archive/1_51_892652515.dbf RECID=400 STAMP=894232821
archived log file name=/home/oracle/app/archive/1_52_892652515.dbf RECID=401 STAMP=894240522
archived log file name=/home/oracle/app/archive/1_53_892652515.dbf RECID=402 STAMP=894278467
channel ORA_DISK_1: finished piece 1 at 28-OCT-15
piece handle=/home/oracle/rmanback/backupPROD2_128_40qkr78v_1_1.bak tag=TAG20151028T104619 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
channel ORA_DISK_1: deleting archived log(s)
archived log file name=/home/oracle/app/archive/1_54_892652515.dbf RECID=404 STAMP=894278583
archived log file name=/home/oracle/app/archive/1_55_892652515.dbf RECID=406 STAMP=894278584
archived log file name=/home/oracle/app/fast_recovery_area/prod2/1_56_892652515.dbf RECID=409 STAMP=894278585
archived log file name=/home/oracle/app/archive/1_57_892652515.dbf RECID=410 STAMP=894278588
archived log file name=/home/oracle/app/archive/1_58_892652515.dbf RECID=412 STAMP=894278778
channel ORA_DISK_3: finished piece 1 at 28-OCT-15
piece handle=/home/oracle/rmanback/backupPROD2_126_3uqkr73t_1_1.bak tag=TAG20151028T104619 comment=NONE
channel ORA_DISK_3: backup set complete, elapsed time: 00:02:47
channel ORA_DISK_3: deleting archived log(s)
archived log file name=/home/oracle/app/archive/1_30_892652515.dbf RECID=379 STAMP=893397618
archived log file name=/home/oracle/app/archive/1_31_892652515.dbf RECID=380 STAMP=893437206
archived log file name=/home/oracle/app/archive/1_32_892652515.dbf RECID=381 STAMP=893463766
archived log file name=/home/oracle/app/archive/1_33_892652515.dbf RECID=382 STAMP=893541621
archived log file name=/home/oracle/app/archive/1_34_892652515.dbf RECID=383 STAMP=893550271
archived log file name=/home/oracle/app/archive/1_35_892652515.dbf RECID=384 STAMP=893628016
archived log file name=/home/oracle/app/archive/1_36_892652515.dbf RECID=385 STAMP=893636762
archived log file name=/home/oracle/app/archive/1_37_892652515.dbf RECID=386 STAMP=893680197
archived log file name=/home/oracle/app/archive/1_38_892652515.dbf RECID=387 STAMP=893723265
archived log file name=/home/oracle/app/archive/1_39_892652515.dbf RECID=388 STAMP=893727390
archived log file name=/home/oracle/app/archive/1_40_892652515.dbf RECID=389 STAMP=893800830
archived log file name=/home/oracle/app/archive/1_41_892652515.dbf RECID=390 STAMP=893809792
channel ORA_DISK_2: finished piece 1 at 28-OCT-15
piece handle=/home/oracle/rmanback/backupPROD2_125_3tqkr73s_1_1.bak tag=TAG20151028T104619 comment=NONE
channel ORA_DISK_2: backup set complete, elapsed time: 00:02:52
channel ORA_DISK_2: deleting archived log(s)
archived log file name=/home/oracle/app/archive/1_17_892652515.dbf RECID=366 STAMP=892910475
archived log file name=/home/oracle/app/archive/1_18_892652515.dbf RECID=367 STAMP=892939309
archived log file name=/home/oracle/app/archive/1_19_892652515.dbf RECID=368 STAMP=892980037
archived log file name=/home/oracle/app/archive/1_20_892652515.dbf RECID=369 STAMP=893025820
archived log file name=/home/oracle/app/archive/1_21_892652515.dbf RECID=370 STAMP=893044821
archived log file name=/home/oracle/app/archive/1_22_892652515.dbf RECID=371 STAMP=893109645
archived log file name=/home/oracle/app/archive/1_23_892652515.dbf RECID=372 STAMP=893112349
archived log file name=/home/oracle/app/archive/1_24_892652515.dbf RECID=373 STAMP=893190737
archived log file name=/home/oracle/app/archive/1_25_892652515.dbf RECID=374 STAMP=893198839
archived log file name=/home/oracle/app/archive/1_26_892652515.dbf RECID=375 STAMP=893260831
archived log file name=/home/oracle/app/archive/1_27_892652515.dbf RECID=376 STAMP=893290748
archived log file name=/home/oracle/app/archive/1_28_892652515.dbf RECID=377 STAMP=893311245
archived log file name=/home/oracle/app/archive/1_29_892652515.dbf RECID=378 STAMP=893358035
Finished backup at 28-OCT-15

Starting Control File and SPFILE Autobackup at 28-OCT-15
piece handle=/home/oracle/rmanback/con_c-1536971911-20151028-00 comment=NONE
Finished Control File and SPFILE Autobackup at 28-OCT-15

可以看到sequence 53 之前的,只有一個路徑的已經被刪除了,而多個路徑的只刪除一個路徑下面的歸檔

RMAN> list archivelog all;

List of Archived Log Copies for database with db_unique_name PROD2
=====================================================================

Key     Thrd Seq     S Low Time 
------- ---- ------- - ---------
403     1    53      A 28-OCT-15
        Name: /home/oracle/app/fast_recovery_area/prod2/1_53_892652515.dbf

405     1    54      A 28-OCT-15
        Name: /home/oracle/app/fast_recovery_area/prod2/1_54_892652515.dbf

407     1    55      A 28-OCT-15
        Name: /home/oracle/app/fast_recovery_area/prod2/1_55_892652515.dbf

408     1    56      A 28-OCT-15
        Name: /home/oracle/app/archive/1_56_892652515.dbf

411     1    57      A 28-OCT-15
        Name: /home/oracle/app/fast_recovery_area/prod2/1_57_892652515.dbf

413     1    58      A 28-OCT-15
        Name: /home/oracle/app/fast_recovery_area/prod2/1_58_892652515.dbf

4.我們使用delete all input看一下結果

RMAN> backup archivelog all delete all input;

Starting backup at 28-OCT-15
current log archived
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
skipping archived logs of thread 1 from sequence 53 to 58; already backed up
channel ORA_DISK_1: starting compressed archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=59 RECID=414 STAMP=894279095
channel ORA_DISK_1: starting piece 1 at 28-OCT-15
channel ORA_DISK_2: deleting archived log(s)
archived log file name=/home/oracle/app/fast_recovery_area/prod2/1_53_892652515.dbf RECID=403 STAMP=894278467
archived log file name=/home/oracle/app/fast_recovery_area/prod2/1_54_892652515.dbf RECID=405 STAMP=894278583
archived log file name=/home/oracle/app/fast_recovery_area/prod2/1_55_892652515.dbf RECID=407 STAMP=894278584
archived log file name=/home/oracle/app/archive/1_56_892652515.dbf RECID=408 STAMP=894278585
archived log file name=/home/oracle/app/fast_recovery_area/prod2/1_57_892652515.dbf RECID=411 STAMP=894278588
archived log file name=/home/oracle/app/fast_recovery_area/prod2/1_58_892652515.dbf RECID=413 STAMP=894278778
channel ORA_DISK_1: finished piece 1 at 28-OCT-15
piece handle=/home/oracle/rmanback/backupPROD2_130_42qkr7dn_1_1.bak tag=TAG20151028T105135 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: deleting archived log(s)
archived log file name=/home/oracle/app/archive/1_59_892652515.dbf RECID=414 STAMP=894279095
archived log file name=/home/oracle/app/fast_recovery_area/prod2/1_59_892652515.dbf RECID=415 STAMP=894279095
Finished backup at 28-OCT-15

Starting Control File and SPFILE Autobackup at 28-OCT-15
piece handle=/home/oracle/rmanback/con_c-1536971911-20151028-01 comment=NONE
Finished Control File and SPFILE Autobackup at 28-OCT-15


RMAN> list archivelog all;

specification does not match any archived log in the repository

總結:
delete input 只備份一個路徑下的archivelog,只刪除備份的目標路徑下的archivelog;
delete all input 只備份一個路徑下的archivelog,刪除所有路徑下的archivelog;

–本文乃原創文章,請勿轉載。如須轉載請詳細標明轉載出處

相關推薦

RMAN DELETE INPUTDELETE ALL INPUT區別

1.首先檢查一下歸檔的路徑 [email protected] > show parameter archive NAME TYPE VALUE -------

RMANdelete exipired delete obsolete 的區別

oracleelete expired If you run CROSSCHECK, and if RMAN cannot locate the files, then it updates their records in the RMAN repository to EXPIRED status. You

laravel中delete()方法destroy()方法的區別

delete()方法是例項方法,需要查詢到相應的資料並通過模型例項呼叫 destroy()方法可以直接呼叫,通過索引刪除記錄 舉個栗子: 1 /*delete()方法刪除*/ 2 //先查詢記錄 3 $blog = Blog::find(1); 4 if($blog){ 5 //再刪除記

delete[]pdelete p的區別.md

new、delete、malloc、free的關係: delete會呼叫物件的解構函式,和new對應,free只會釋放記憶體,new呼叫建構函式。malloc與free是C++/C語言的標準庫函式,new/delete是C++的運算子。它們都可用於申請動態記憶體

StringBuffer類的delete()方法deleteCharAt()方法的區別

引言   StringBuffer類的delete()方法和deleteCharAt()方法都是用來刪除StringBuffer字串中的字元 區別   1.對於delete(int start,int end)這個方法一共有兩個引數是int型別的,代表從索引下標start刪除字元到索引下標end字元,但

UNION UNION ALL區別

emp tor lec 結果集 excel 順序 效率 b- 結果的處理 1、UNION用的比較多 語法如下: select employee_id,job_id from employees union select employee_id,job_id fr

SQL UNION UNION ALL 操作符 區別注意

SQL UNION 操作符 UNION 操作符用於合併兩個或多個 SELECT 語句的結果集。 請注意,UNION 內部的 SELECT 語句必須擁有相同數量的列。列也必須擁有相似的資料型別。同時,每條 SELECT 語句中的列的順序必須相同。 SQL UNION 語法 SEL

union union all區別

union和union all都可以將2個或多個表進行合併,但這些子查詢必須具有相同的列,且對應的欄位的型別必須一致。union all直接合並,取到表中的所有值,沒有去重功能;union具有去重功能,取到的每個值都是唯一的。union all是將兩個結果簡單的合併後返回,union是按照欄位的順序

SQL中unionunion all區別

union在進行表求並集後會去掉重複的元素,所以會對所產生的結果集進行排序運算,刪除重複的記錄再返回結果。 union all則只是簡單地將兩個結果集合並後就返回結果。因此,如果返回的兩個結果集中有重複的資料,那麼返回的結果就會包含重複的資料。 從上面的對比可以看出,在執

資料庫-unionunion all區別(舉例說明)

union在進行表求並集後會去掉重複的元素,所以會對所產生的結果集進行排序運算,刪除重複的記錄再返回結果。 union all則只是簡單地將兩個結果集合並後就返回結果。因此,如果返回的兩個結果集中有重複的資料,那麼返回的結果就會包含重複的資料。 從上面的對比可以看出,在

【sql】unionunion all區別

union的主要作用是將多個select的結果進行合併,每個select的語句執行結果必須得滿足如下要求才能進行union操作: UNION必須由兩條或兩條以上的SELECT語句組成,語句之間用關鍵字UNION分隔(因此,如果組合4條SELECT語

UNION UNION ALL區別(合併表檢視)

Union用法及說明: Union是使用者合併多個select結果集的操作符,需要注意的是:select語句需要有相同的列數,類似的資料型別,且列的順序相同,另外,UNION 結果集中的列名總是等於

資料庫中UNIONUNION ALL區別以及並集怎麼取得

UNION 並集,表中的所有資料,並且去除重複資料(工作中主要用到的是這個);UNION ALL,表中的資料都羅列出來;那麼交集怎麼取呢,怎麼取得幾張表中的重疊的部分呢?(文末提供了一種方法)UNION 操作符用於合併兩個或多個 SELECT 語句的結果集。需要滿足以下條件:

資料庫查詢優化(使用union union all區別)

在專案中遇到一個問題,建立一個檢視,主要內容是: SELECT   info.InfoCode, info.YearOfData, info.MonthOfData, info.ProjectPropertyID, property.PropertyName, info.P

Oracle中 UNIONUINON ALL區別,ISAS的區別(簡單介紹,以後逐漸詳細)

UNION :去重,自動排序 UNION ALL :資料不去充,不自動排序 但實際上,我在公工作中還是UNION ALL使用頻率高 ORACLE中IS 和AS在儲

hql裏面unionunion all區別

區別 需要 多個 union all 排序。 是不是 結果 重復 操作 union和union all的區別是,union會自動壓縮多個結果集合中的重復結果,而union all則將所有的結果全部顯示出來,不管是不是重復。 註意,原來表裏面的重復行也會被壓縮。 U

SQL中truncate tabledelete區別

約束 重置 mar 功能 語句 str foreign ack span TRUNCATE TABLE 在功能上與不帶 Where 子句的 Delete 語句相同:二者均刪除表中的全部行。但 TRUNCATE TABLE 比 Delete 速度快,且使用的系統和事務日誌資源

Python input()raw_input()的區別

color 規則 自己 () 必須 ring 格式 class 但是   區別嘛,就是raw_input()隨便輸都是字符串,而input()必須按照Python的規則來~ raw_input() name=raw_input(‘輸入姓名:‘) age=raw_inp

inputtextarea區別

code type textarea put cnblogs tar 滾動 text blog 1. input是單行文本,textarea是多行文本,可以帶滾動條2. input的value放在標簽裏面 <input type="text" value="beij

drop、truncatedelete區別

tle key ica class ims watermark mine -i baseline drop、truncate和delete的區別SQL DELETE 1.delete是DML,執行delete操作時,每次從表中刪除一行,並且同時將該行的的刪除操