I want to insert Multiple BLOB file at once in "USER_PROFILE" table using loop by procedure/function. Working on Oracle DB using SQLdeveloper
BLOB Files:
- user.resetpassword.email.body.html
- password.expiry.notification.email.html
- password.expiry.notification.subject.txt
- user.resetpassword.email.subject.txt
BLOB FILE DIRECTORY : U_PROFILE
BLOB column name : PROP_VALUE
Unique key : PROP_KEY (This column naming conventions will be same with BLOB file names)
CREATE TABLE "USER_PROFILE" ( "USER_PROFILE_PID" VARCHAR2(40 BYTE) , "PROP_KEY" VARCHAR2(100 BYTE) , "PROP_VALUE" BLOB , "MODIFIED_DTS" DATE , "BUILD_VERSION" VARCHAR2(100 BYTE) , "DESCRIPTION" VARCHAR2(4000 BYTE) )
;
INSERT INTO user_profile ( user_profile_pid , prop_key , modified_dts , build_version , description ) VALUES ( 'CTP-1000' , 'password.expiry.notification.email' , NULL , '1.2' , 'User Account Expiry notification' );
INSERT INTO user_profile ( user_profile_pid , prop_key , modified_dts , build_version , description ) VALUES ( 'CTP-1001' , 'password.expiry.notification.subject' , NULL , '1.2' , 'User Account Expiry notification subject' );