Japanese Cities' Names

Sort by

recency

|

425 Discussions

|

  • + 0 comments

    Query the names of all the Japanese cities in the CITY table.

    BUT we selected name column. why ?

  • + 0 comments

    PL/SQL:

    SET SERVEROUTPUT ON;

    BEGIN FOR a IN (SELECT NAME FROM city WHERE countrycode = 'JPN') LOOP DBMS_OUTPUT.PUT_LINE(

            a.name 
        );
    END LOOP;
    

    END; /

    exit;

  • + 0 comments

    SELECT NAME FROM CITY WHERE COUNTRYCODE='JPN';

  • + 0 comments

    SELECT NAME FROM CITY WHERE COUNTRYCODE='JPN'

  • + 0 comments

    For MySQL

    SELECT name FROM city
    WHERE countrycode = "JPN";