smena
asked on
Long data type
I'm reiterrating the same question one more time, since I didn't get the exact answer in a first place...
I've been advised to use clob datatype instead of long and I agree from the technical point, however, in my specific case I need to to generate Long field with at least 8mb for !!!testing purposes!!!
I'm trying to use pl/sql for data manipulation (reading input table and inserting/updating output tables)...
My issue is that there are differences in datatypes between pl/sql "LONG" and an Oracle table column. The PL/SQL can hold up to 32760 bytes while long in oracl table allows to store 2gb.
Please reply with a working solution...
I've been advised to use clob datatype instead of long and I agree from the technical point, however, in my specific case I need to to generate Long field with at least 8mb for !!!testing purposes!!!
I'm trying to use pl/sql for data manipulation (reading input table and inserting/updating output tables)...
My issue is that there are differences in datatypes between pl/sql "LONG" and an Oracle table column. The PL/SQL can hold up to 32760 bytes while long in oracl table allows to store 2gb.
Please reply with a working solution...
ASKER
Let me try to clarify what my case scenario should be:
1. I need to create a table where one of the column defined as LONG
2. I need to create a test data and insert 8mb data into this column
3. Read this table in PL/SQL, get this columns and try to a) update or b) search for some specific value
I may have the following scenario
input table1
col1-key integer
col2 varchar2
col3 varchar2
col4 long
col4 - should have at least one row with data 8mb
I have to update/insert table2 (output) using table1 that defined as
col1-key integer
col2 long
hopefully it helps.
thnak you
1. I need to create a table where one of the column defined as LONG
2. I need to create a test data and insert 8mb data into this column
3. Read this table in PL/SQL, get this columns and try to a) update or b) search for some specific value
I may have the following scenario
input table1
col1-key integer
col2 varchar2
col3 varchar2
col4 long
col4 - should have at least one row with data 8mb
I have to update/insert table2 (output) using table1 that defined as
col1-key integer
col2 long
hopefully it helps.
thnak you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here are metalink examples on manipulating LONG data
with OCI
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1015863.6
with PRO*C
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=148507.1
with OCI
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1015863.6
with PRO*C
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=148507.1
Gio