SQL Language (MOSC)

MOSC Banner

Concatenation Operator

edited Jan 28, 2020 6:46AM in SQL Language (MOSC) 6 commentsAnswered

Hi All,

Can someone please format this below query to use concatenation? This query is not giving me any results. Its just simply pasting the query text in my output.

My DB is 11g.

select 'exec dbms_stats.gather_table_stats(ownname => ''||OWNER||'' ,

tabname=>''||TABLE_NAME||'', partname=> ''||'PARTITION_NAME'||'', granularity=>''AUTO'',

estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, degree => ''8'');' from dba_tab_statistics

Thanks

Hemanth

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center