Friday, 6 March 2020

String conversion into table/column output for comparison into in clause and many more

FUNCTION pipe_delimited_string ( p_source_list VARCHAR2, p_delimiter VARCHAR2 DEFAULT ',' )
RETURN varchar2
PIPELINED IS
xxit_varchar varchar2(4000);
--pass string delimited with comma and get list of columns.
BEGIN
FOR x IN (     SELECT TRIM ( REGEXP_SUBSTR ( p_source_list,
   '[^' || p_delimiter || ']+',
   1,
   LEVEL ) )
   col_value
   FROM DUAL
CONNECT BY REGEXP_SUBSTR ( p_source_list,
'[^' || p_delimiter || ']+',
1,
LEVEL )
   IS NOT NULL ) LOOP
 PIPE ROW( x.col_value);
END LOOP;
END pipe_delimited_string;

1 comment:

  1. How to Recover Stolen Bitcoin: Hire a Certified Bitcoin Recovery Experts / Alpha Recovery Experts

    Alpha Recovery Experts are a team of professionals in the Crypto space that stands out to be one of the best bitcoin scam recovery firms. The team has a proven track record of success in retrieving lost or stolen funds for their clients. I can say, the Alpha Recovery Experts team are well-versed in the complexities of blockchain technology and the ever-evolving world of cryptocurrency, allowing them to navigate intricate systems with ease. If you have unfortunately lost your funds to a Crypto scam, all is not lost. The Alpha Recovery Expert's team is ready to help you retrieve your lost or stolen Cryptocurrency.

    Contact: info:
    Website: Alpharecoveryexperts.com
    Email: (Alpharecoveryexpert@consultant.com)
    WhatsApp: (+44)745)742-4681

    ReplyDelete