Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

REPLICATE of SQL Server on Oracle

Ariagna Bandala salazarOct 29 2020 — edited Oct 29 2020

I am working in Oracle 12cR2 and I want to know if there is any functionality in Oracle other than RPAD and LPAD that is the equivalent to REPLICATE of SQL Server, I need to obtain the function really equivalent to this, I have a case of difference which is the following :
SQL Server: SELECT REPLICATE ('HELLO', 0); Result = ''
Oracle: SELECT RPAD ('HELLO', LENGTH ('HELLO') * 0, 'HELLO') FROM DUAL; Result = NULL

I need to get the same result in both managers :( hope you can help me :(

Comments
Post Details
Added on Oct 29 2020
6 comments
2,050 views