【发布时间】:2018-12-21 05:13:24
【问题描述】:
我在 MariaDB 中创建了一个数据库,然后运行了一些 SQL 来创建表 像这样:
create table customers
( customerid int unsigned not null auto_increment primary key,
name char(50) not null,
address char(100) not null,
city char(30) not null
);
create table orders
( orderid int unsigned not null auto_increment primary key,
customerid int unsigned not null,
amount float(6,2),
date date not null
);
然后我尝试用一些数据填充它:
insert into customers values
(3, "Саша Валентей", "12, ул. Гудвина", "г. Изумрудный"),
(4, "Ева Легкая", "34, пр. Незнайки", "г. Солнечный"),
(5, "Слава Моргунов", "56, пер. Поттера", "пгт Хогвартс");
insert into orders values
(NULL, 3, 69.98, "2008-04-02"),
(NULL, 1, 49.99, "2008-04-15"),
(NULL, 2, 74.98, "2008-04-19"),
(NULL, 3, 24.99, "2008-05-01");
这是西里尔文,如果这很重要的话。现在我的问号在哪里 字符应该是。我的服务器是 UTF-8 并且该表似乎是 latin_swedish_ci。我该如何解决这个问题?
【问题讨论】: