dbms_sql之通用general及bulk批量(大體積)type 型別
Types
General Types
Bulk SQL Types
#########下為以上dbms_sql引用特殊型別的具體定義
BFILE_TABLE
TYPE bfile_table IS TABLE OF BFILE INDEX BY BINARY_INTEGER;
BINARY_DOUBLE_TABLE
TYPE binary_double_table IS TABLE OF BINARY_DOUBLE INDEX BY BINARY_INTEGER;
BINARY_FLOAT_TABLE
TYPE binary_float_table IS TABLE OF BINARY_FLOAT INDEX BY BINARY_INTEGER;
BLOB_TABLE
TYPE blob_table IS TABLE OF BLOB INDEX BY BINARY_INTEGER;
CLOB_TABLE
TYPE clob_table IS TABLE OF CLOB INDEX BY BINARY_INTEGER;
DATE_TABLE
type date_table IS TABLE OF DATE INDEX BY BINARY_INTEGER;
INTERVAL_DAY_TO_SECOND_TABLE
TYPE interval_day_to_second_Table IS TABLE OF dsinterval_unconstrained INDEX BY binary_integer;
INTERVAL_YEAR_TO_MONTH_TABLE
TYPE interval_year_to_month_table IS TABLE OF yminterval_unconstrained INDEX BY BINARY_INTEGER;
DESC_REC, DESC_TAB
TYPE desc_rec IS RECORD ( col_type BINARY_INTEGER := 0, col_max_len BINARY_INTEGER := 0, col_name VARCHAR2(32) := '', col_name_len BINARY_INTEGER := 0, col_schema_name VARCHAR2(32) := '', col_schema_name_len BINARY_INTEGER := 0, col_precision BINARY_INTEGER := 0, col_scale BINARY_INTEGER := 0, col_charsetid BINARY_INTEGER := 0, col_charsetform. BINARY_INTEGER := 0, col_null_ok BOOLEAN := TRUE); TYPE desc_tab IS TABLE OF desc_rec INDEX BY BINARY_INTEGER;
NUMBER_TABLE
TYPE number_table IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
TIME_TABLE
TYPE time_table IS TABLE OF time_unconstrained INDEX BY BINARY_INTEGER;
TIME_WITH_TIME_ZONE_TABLE
TYPE time_with_time_zone_table IS TABLE OF TIME_TZ_UNCONSTRAINED INDEX BY BINARY_INTEGER;
TIMESTAMP_TABLE
TYPE timestamp_table IS TABLE OF timestamp_unconstrained INDEX BY BINARY_INTEGER;
TIMESTAMP_WITH_LTZ_TABLE
TYPE timestamp_with_ltz_table IS TABLE OF TIMESTAMP_LTZ_UNCONSTRAINED INDEX BY binary_integer;
UROWID_TABLE
TYPE urowid_table IS TABLE OF UROWID INDEX BY BINARY_INTEGER;
VARCHAR2_TABLE
TYPE varchar2_table IS TABLE OF VARCHAR2(2000) INDEX BY BINARY_INTEGER;
VARCHAR2A, DESC_REC2
TYPE varchar2a IS TABLE OF VARCHAR2(32767) INDEX BY BINARY_INTEGER; TYPE desc_rec2 IS RECORD ( col_type binary_integer := 0, col_max_len binary_integer := 0, col_name varchar2(32767) := '', col_name_len binary_integer := 0, col_schema_name varchar2(32) := '', col_schema_name_len binary_integer := 0, col_precision binary_integer := 0, col_scale binary_integer := 0, col_charsetid binary_integer := 0, col_charsetform. binary_integer := 0, col_null_ok boolean := TRUE); TYPE desc_tab2 IS TABLE OF desc_rec2 INDEX BY BINARY_INTEGER;
VARCHAR2S
TYPE varchar2s IS TABLE OF VARCHAR2(256) INDEX BY BINARY_INTEGER;
這些特殊資料型別適用於一些特定場合,實為有用,備記!
比如用於檢視某個表的結構(功能同於describle emp) dbms_sql.describle_columns其中所用的desc_rec及desc_tab
以上層次結構為:
type is record(基本的資料型別)---〉desc_rec-->desc_tab
另:所有dbms_sql所用的特殊資料型別:全是type 特殊資料型別 is table of 基本資料型別 index by binary_integer
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-670016/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 小體積大感量電感型別詳解型別
- Pytorch框架之tensor型別轉換(type, type_as)PyTorch框架型別
- JAVA基礎之九-泛型(通用型別)Java泛型型別
- TypeScript type 型別別名TypeScript型別
- 《Haskell趣學指南》筆記之型別(type)Haskell筆記型別
- mongodb批量操作, bulk_write,MongoDB
- 資訊批量提取工具bulk-extractor
- 基礎篇:深入解析JAVA泛型和Type型別體系Java泛型型別
- 常用php操作redis命令整理(一)通用及字串型別PHPRedis字串型別
- JavaScript input type=file 獲取檔案大小及型別限制JavaScript型別
- 使用BULK COLLECT+FORALL加速批量提交
- Redis之set型別及操作Redis型別
- Redis之list型別及操作Redis型別
- Redis之hash型別及操作Redis型別
- Redis之zset型別及操作Redis型別
- CSS通用資料型別CSS資料型別
- Oracle資料庫的BULK COLLECT用法之批量增刪改<轉>Oracle資料庫
- drools的型別宣告(Type declarations)型別
- Python -型別提示 Type HintsPython型別
- 深入學習typescript type型別TypeScript型別
- typescript type 分配條件型別TypeScript型別
- HTTP Content-Type型別HTTP型別
- struts2 result type型別型別
- oracle patch補丁型別typeOracle型別
- MSSQL sysobjects type 型別彙總SQLObject型別
- Elasticsearch——mget及bulkElasticsearch
- ElasticSearch7.4批量匯入_bulkElasticsearch
- 使用bulk collect實現cursor 批量fetch!
- sql注入之型別及提交注入SQL型別
- Redis之string型別及操作Redis型別
- mysql型別批量替換工具MySql型別
- <input type="file"> 限制檔案型別型別
- jQuery匹配指定type型別input元素jQuery型別
- JavaScript新增型別語法Type SyntaxJavaScript型別
- Java中的Type型別詳解Java型別
- Rust的變數型別__Data typeRust變數型別
- 全域性 type 型別的尋找 typescript 型別 - fabric.Canvas型別TypeScriptCanvas
- SQL Server Bulk Insert批量資料匯入SQLServer