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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -