12.

“Mexico 墨西哥”的首都是”Mexico City”。

顯示所有國家名字,其首都是國家名字加上”City”。

concat函數

函數concat 可以用來合拼兩個或以上的字串。

:

SELECT name
FROM world

WHERE capital LIKE (concat(name, ' City'))

05-06 11:44