Oracle 11g 向表中大欄位插入資料
SQL> create user samp identified by samp;
User created.
SQL> grant connect, resource to samp;
Grant succeeded.
SQL> GRANT CREATE ANY DIRECTORY to samp;
Grant succeeded.
SQL> CONNECT samp
Enter password:
Connected.
建立directory,上傳複製影像檔案到directory目錄
SQL> CREATE OR REPLACE DIRECTORY my_directory_object AS '/tmp';
Directory created.
[root@localhost script]# cp /media/sf_hostmnt/20160831.png /tmp/
[root@localhost script]# chown oracle:oinstall /tmp/20160831.png
建立表,插入資料
SQL> CREATE TABLE print_media
( product_id NUMBER(6)
, ad_id NUMBER(6)
, ad_composite BLOB
, ad_sourcetext CLOB
, ad_finaltext CLOB
, ad_fltextn NCLOB
, ad_photo BLOB
, ad_graphic BFILE
); 2 3 4 5 6 7 8 9 10
Table created.
SQL> INSERT INTO print_media VALUES (1726, 1, EMPTY_BLOB(),
'my Oracle', EMPTY_CLOB(), EMPTY_CLOB(),
NULL, BFILENAME('my_directory_object', '20160831.png'));
1 row created.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2124310/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- hive將查詢資料插入表中某欄位無資料Hive
- mysql資料表插入資料後,獲取自增欄位值的方法MySql
- 如何在Oracle資料庫中查詢表和欄位說明Oracle資料庫
- 查詢資料庫表及表欄位資料庫
- oracle 修改表欄位的長度Oracle
- 如何插入關聯表資料,或插入資料的時候執行,根據某欄位執行一個函式函式
- 資料庫表欄位命名規範資料庫
- Oracle 11G DBMS_REDEFINITION修改表資料型別Oracle資料型別
- Oracle獲取所有表名資訊和獲取指定表名欄位資訊Oracle
- 檢視oracle資料庫中,哪些表的欄位是null值比較多Oracle資料庫Null
- 支援 enum 型別的欄位允許為空插入資料庫型別資料庫
- ORACLE查詢欄位中含有空格的資料Oracle
- MySQL 5.7 datetime和timestamp欄位設定default 0 插入資料包錯MySql
- 使用 Python 字典向 SQLite 插入資料PythonSQLite
- 表單欄位
- 如何較方便給上百張資料庫表新增表欄位資料庫
- 模型資料追加欄位模型
- 【解決方案】Oracle插入/更新CLOB欄位報ORA-01704:字串文字太長Oracle字串
- 位運算-設計資料庫表的多選狀態欄位資料庫
- Oracle批量插入資料insert all into用法Oracle
- Oracle資料庫連結(DBLink)中如何訪問包含BLOB欄位的資料Oracle資料庫
- mysql資料表按照某個欄位分類輸出MySql
- Oracle-欄位的新增Oracle
- Oracle Data Pump 11G 資料泵元件Oracle元件
- 「python」向DataFrame資料格式中插入行Python
- 織夢資料庫表結構_Dedecms資料庫表和欄位詳細介紹資料庫
- oracle中判斷欄位是否存在和新增表結構Oracle
- 順序表有序插入資料
- 分庫分表插入資料
- Oracle資料庫高水位釋放——LOB欄位空間釋放Oracle資料庫
- ABAP 資料庫表 Size Category 欄位的準確含義資料庫Go
- 向PostgreSQL資料庫插入Date型別資料包錯SQL資料庫型別
- oracle-資料庫- insert 插入語句Oracle資料庫
- 11G oracle資料庫重新啟動crsOracle資料庫
- 靜默安裝Oracle資料庫11gOracle資料庫
- Oracle 11g用impdp還原資料庫Oracle資料庫
- Sql查詢 一個表中某欄位的資料在另一個表中某欄位中不存在的SQL
- Mybatis框架:foreach迴圈遍歷欄位(為了解決動態表、動態欄位查詢資料)MyBatis框架
- SQL Server中獲取資料庫名、表名、欄位名和欄位註釋的SQL語句SQLServer資料庫