I want to get 20 records from all tables on my schema but my code doesn't work.
BEGIN
FOR R IN (SELECT table_name FROM user_tables) LOOP
EXECUTE IMMEDIATE 'dbms_output.put_line(select * from '||r.table_name||' where rownum<=20)';
END LOOP;
END;
Someone know why or can help me with this case?
varchar), so it cannot be used withput_line. The whole logic is off...