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

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -