Hello all.
OK, I know I know: DON'T EVER USE THE LONG DATATYPE.
I understand.
But here's my situation:
I'm accessing data through a db link that's from from a MySQL database. Like SQL Server (I guess), they have this char datatype (I don't know the official name of the datatype in MySQL) that is 2G in length I guess.
I did a
and under the data_type column it says "LONG" and under the data_length column it says 2,147,483,647.
I don't want to be a whiner, but in MS Access I just say:
and I get back all the data just fine.
Problem is, I need to use it in Oracle.
Can anyone suggest to me how to access this column via Oracle?
I tried
but that is probably a bumbling attempt, but it's the best I know. It did not work...lol.
Thank you for the help.
-Mike
OK, I know I know: DON'T EVER USE THE LONG DATATYPE.
I understand.
But here's my situation:
I'm accessing data through a db link that's from from a MySQL database. Like SQL Server (I guess), they have this char datatype (I don't know the official name of the datatype in MySQL) that is 2G in length I guess.
I did a
Code:
select * from all_tab_columns@my_db_link_to_MySQL
I don't want to be a whiner, but in MS Access I just say:
Code:
select * from the_mysql_table@my_db_link_to_MySQL
Problem is, I need to use it in Oracle.
Can anyone suggest to me how to access this column via Oracle?
I tried
Code:
select substr(really_long_col,1,4000) from the_mysql_table@my_db_link_to_MySQL
Thank you for the help.
-Mike