當我運行以下查詢:歸類(utf8_unicode_ci,COERCIBLE)和(utf8_general_ci,COERCIBLE)操作 '=' 的非法混合
CREATE ALGORITHM = UNDEFINED VIEW d_view_galerias AS (
SELECT id, titulo, 'foto' AS tipo, '' AS embed
FROM d_galeria_fotos
)
UNION (
SELECT id, titulo, 'video' AS tipo, embed
FROM d_galeria_videos
)
我得到的錯誤:
Illegal mix of collations (utf8_unicode_ci,COERCIBLE) and (utf8_general_ci,COERCIBLE) for operation '='
「 tipo「獲取爲utf8_unicode,但其他字段爲utf8_general ...如何進行轉換,轉換?