sql - REPEAT function equivalent in Oracle -
i know how achieve same functionality repeat() in sql*plus. example consider problem: display character '*' many times value specified integer attribute specified each entry in given table.
nitpicking: sql*plus doesn't have feature that. database server (oracle) provides ability execute sql , has such function:
you looking rpad()
select rpad('*', 10, '*') dual;
will output
**********
more details can found in manual: https://docs.oracle.com/cd/e11882_01/server.112/e41084/functions159.htm#sqlrf06103
Comments
Post a Comment