We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
SET SERVEROUTPUT ON;
BEGIN
FOR a in (select * from city where id = 1661)
LOOP
DBMS_OUTPUT.PUT_LINE(a.id || ' ' || a.name || ' ' || a.countrycode || ' ' ||
a.district || ' '|| a.population);
END LOOP;
END;
/
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Select By ID
You are viewing a single comment's thread. Return to all comments →
ORACLE PL/SQL:
SET SERVEROUTPUT ON; BEGIN FOR a in (select * from city where id = 1661) LOOP DBMS_OUTPUT.PUT_LINE(a.id || ' ' || a.name || ' ' || a.countrycode || ' ' || a.district || ' '|| a.population); END LOOP; END; /