I tried to print 'CORP_CODE' out with tuple which has same 'CORP_NAME' in it. SO, I wrote this code.
SELECT CORP_CODE
FROM COMPANY_INFO
WHERE CORP_NAME = '다코'
However, There is important error. The above code show ORA-00932: "inconsistent datatypes: expected %s got %s" I changed '' to "", But It isn't helpful.
I found more information, The column named 'CORP_NAME' is type of CLOB data. It seems that I need to use special methods for do it.
That table, I dind't make it myself. It was just made by python pandas function 'dataframe.to_sql'.
In this situlation, I have three questions for you.
- How can I get CORP_CODE with CLOB data 'CORP_NAME' by WHERE command or anything else?
- Should I re-make table and define 'CORP_NAME' as VARCHAR2? Is it the only way for me?
- In pandas inner function 'to_sql', Can I set detail options for making table?
I make another table that 'CORP_NAME' as VARCHAR2(146). However, I want to know how can I select something by WHERE sentences.