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.
- Prepare
- SQL
- Basic Select
- Japanese Cities' Names
- Discussions
Japanese Cities' Names
Japanese Cities' Names
Sort by
recency
|
425 Discussions
|
Please Login in order to post a comment
Query the names of all the Japanese cities in the CITY table.
BUT we selected name column. why ?
PL/SQL:
SET SERVEROUTPUT ON;
BEGIN FOR a IN (SELECT NAME FROM city WHERE countrycode = 'JPN') LOOP DBMS_OUTPUT.PUT_LINE(
END; /
exit;
SELECT NAME FROM CITY WHERE COUNTRYCODE='JPN';
SELECT NAME FROM CITY WHERE COUNTRYCODE='JPN'
For MySQL