我正在尝试使用Java语言使用波兰语编写的单词来初始化MySQL数据库关系。
下面是这行代码:
db.executeQuery("create table "+schema+".category_"+globalId.split("-")[1]+"( id int not null unique, cName varchar(40) not null, primary key (id)) default character set =utf8 collate= utf8_bin;"
它适用于德语或瑞典语,即该语言的特殊字符被存储在
我安装了xampp 7.4版本。它的数据库有10.4.14- mariaDb。我已经设置了所有的charset=utf8。mysql中的状态在utf8中都是正常的。但是当我为: create table db1(name varchar(10)) charset =utf8设置数据库表时;当我保存一条记录时: set namesuft8;insert into db1("數學");保存成功,但当我执行以下命令时显示错误: select name from db1;它无法显示中文字: '??‘ 我在mysql目录中搜索zh-tw的字体,但找不到它。还有没有人能教我怎么解