# Drop table

스크립트 실행 도중 언제든 drop table 문을 사용하여 데이터 모델, 즉 메모리에서 하나 또는 여러 개의 Qlik Sense 내부 테이블을 삭제할 수 있습니다.선택적으로, drop mapping table 변형을 사용하여 스크립트 실행이 끝나기 전에 매핑 테이블(Mapping 접두사로 만들어진 테이블)을 삭제합니다.

drop [mapping] table tablename {, tablename2 ...}

drop [mapping] tables tablename {, tablename2 ...}

정보 메모drop table 및 drop tables 형식을 둘 다 사용할 수 있습니다.

이로 인해 다음 항목이 손실됩니다.

* 실제 테이블.
* 나머지 테이블의 일부가 아닌 모든 필드.
* 삭제된 테이블에서만 가져온 나머지 필드의 필드 값.

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/drop-table.htm)

#### 예 및 결과:

| 예 | 결과 |
| --- | --- |
| ```<br>drop table Orders, Salesmen, T456a;<br>``` | 이 줄은 메모리에서 세 개의 테이블이 삭제되는 결과를 낳습니다. |
| ```<br>Tab1:<br>Load * Inline [<br>Customer, Items, UnitPrice<br>Bob, 5, 1.50<br>];<br> <br>Tab2:<br>LOAD Customer, Sum( Items * UnitPrice ) as Sales<br>resident Tab1<br>group by Customer;<br> <br>drop table Tab1;<br>``` | Tab2 테이블이 생성되면 Tab1 테이블이 삭제됩니다. |
| ```<br>// Load mapping table of country codes:<br>map1:<br>mapping LOAD *<br>Inline [<br>CCode, Country<br>Sw, Sweden<br>Dk, Denmark<br>No, Norway<br>] ;<br>// Load list of salesmen, mapping country code to country<br>// If the country code is not in the mapping table, put Rest of the world<br>Salespersons:<br>LOAD *,<br>ApplyMap('map1', CCode,'Rest of the world') As Country<br>Inline [<br>CCode, Salesperson<br>Sw, John<br>Sw, Mary<br>Sw, Per<br>Dk, Preben<br>Dk, Olle<br>No, Ole<br>Sf, Risttu] ;<br>// We don't need the CCode anymore<br>Drop Field 'CCode';<br>									<br>Drop Mapping Table map1;<br><br>Metrics:<br><br>Load * Inline [<br>Transaction ID, Sales Amount, Sales Cost, City, Customer ID<br>1000012, 4509.33, 1234.22, Oslo, 250v9849<br>1000013, 1043.21, 180.23, Gothenburg, 195d5930<br>1000014, 6038.35, 1400.10, Copenhagen, 195d5930<br><br>];<br>``` | 이 예는 Drop mapping table 변형을 사용하는 방법을 보여줍니다. 매핑 테이블 map1이 생성된 다음 ApplyMap 함수와 함께 후속 LOAD 문에서 사용됩니다. 매핑 테이블이 사용된 후에는 메모리에서 삭제되어 스크립트 실행의 후속 테이블에 로드될 데이터의 RAM 사용량을 최적화합니다.<br><br>이 경우 매핑 테이블의 행이 몇 개뿐이므로 RAM 최적화는 최소화됩니다. 그러나 대규모 매핑 테이블의 경우나 루프 내에서 매핑 테이블을 생성할 때 성능이 크게 향상될 수 있습니다. |

[Rename table](https://help.qlik.com/ko-KR/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/rename-table.htm)

[Drop field](https://help.qlik.com/ko-KR/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/drop-field.htm)

[Drop](https://help.qlik.com/ko-KR/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Drop.htm)

[Table/Tables](https://help.qlik.com/ko-KR/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Table.htm)

[매핑](https://help.qlik.com/ko-KR/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Mapping.htm)