Skip to content

Oracle Procedure call too long string

Hello I have one procedure like my problem is that P_SICIL or P_EXISTS can be too long so all length can be more then 4000 characters. when I call procedure it gives below error ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 14103, maximum: 4000) if I dont use to_char for clob…

SQL query to get data without hours in timestamp column

I have written a code and sql query to get data from database: I get this dataframe: I want to write another query to get data only for 2019-05-29: but it brings me an error: How could i do that? How could i get rid of hours in timestamp column in my sql query? Desired result is: Answer toDate(timestamp) SELE…

SQL delete except select result

I have these 3 tables, and i want to delete from all records except some already used request Registry Record Request and i use this query which brings me all the rows i want to delete. How to use delete in this case? Answer