D
D
DTX2017-09-27 18:48:54
MySQL
DTX, 2017-09-27 18:48:54

How to change the encoding of the created temporary table?

Now instead of Russian letters, there are question marks.
VeFHLBe.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2017-09-27
@DirecTwiX

SET NAMES 'utf8';  #явно задать кодировку для данного подключения

CREATE TABLE `#table` (
    `org_code` bigint(20) unsigned,
    `title` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL #явно задать кодировку для столбца
) CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; #явно задать кодировку для таблицы


/* Остальное аналогично */

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question