-
Notifications
You must be signed in to change notification settings - Fork 0
/
Script to Populate Sample Data
23 lines (18 loc) · 1.19 KB
/
Script to Populate Sample Data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DROP TABLE fxgn_documents;
CREATE TABLE fxgn_documents (document_id NUMBER PRIMARY KEY,
file_name VARCHAR2(240),
file_url VARCHAR2(4000),
updated_by VARCHAR2(240),
updated_on TIMESTAMP);
INSERT INTO fxgn_documents VALUES (1, 'Image 1', :p_img_url,'Admin',LOCALTIMESTAMP);
INSERT INTO fxgn_documents VALUES (2, 'Image 2', :p_img_url,'Admin',LOCALTIMESTAMP);
INSERT INTO fxgn_documents VALUES (3, 'Image 3', :p_img_url,'Admin',LOCALTIMESTAMP);
INSERT INTO fxgn_documents VALUES (4, 'Image 4', :p_img_url,'Admin',LOCALTIMESTAMP);
INSERT INTO fxgn_documents VALUES (5, 'Image 5', :p_img_url,'Admin',LOCALTIMESTAMP);
INSERT INTO fxgn_documents VALUES (6, 'Image 6', :p_img_url,'Admin',LOCALTIMESTAMP);
COMMIT;
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SELECT document_id slide_key,
file_url slide_url
FROM fxgn_documents
ORDER BY sequence_no ASC;