当前位置:网站首页>Sqlserver data transfer to MySQL
Sqlserver data transfer to MySQL
2022-04-23 01:44:00 【Game programming】
see mysql and sqlserver The default encoding method of the database
mysql:
show variables like 'character_set_%';
show variables like 'collation_%';
sqlserver:
SELECT COLLATIONPROPERTY('Chinese_PRC_Stroke_CI_AI_KS_WS', 'CodePage')
Here are the query results :
936 Simplified Chinese GBK
950 Traditional Chinese BIG5
437 The United States / Canadian English
932 Japanese
949 Korean
866 ru
65001 unicode UFT-8
Chinese bytes
GBK The text encoding of is double byte ;
UTF-8 Coding rule , Use of Chinese 24 position ( Three bytes ) Encoding ;
sqlserver Single user and multi-user switching mode :
perform SQL ALTER DATABASE db_database SET SINGLE_USER WITH ROLLBACK IMMEDIATE
Change to single user mode
perform SQL ALTER DATABASE db_database SET MULTI_USER
Then change to multi-user mode
Create a character set of gbk Of mysql database :MYSQL establish utf-8 Format database first mysql Get into : Code GBK: create database test2 DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;UTF8: CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;[root@linuxtest test]# mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 5Server version: 5.1.30-community MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> CREATE DATABASE `test` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;Query OK, 1 row affected (0.06 sec)mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || cacti || mysql || test | |+--------------------+5 rows in set (0.07 sec) This test Library is utf-8 Format
For the data transmission problem with inconsistent character coding format :【sqlserver gbk code ,mysql utf8 code 】
Solutions : Create a new one mysql database ,gbk code , Then through data transmission , Transfer data to utf8 Coded mysql In the database
Insert data from one table into another
insert into tb_grade (GradeName,NClassId) SELECT g.`GradeName`, cg.`NClassID`FROM `grade` gINNER JOIN `classgrade` cg ON cg.`ClassGradeType`=g.`ClassGradeType`order by NClassId, GradeId asc
author : Winter moon
Game programming ️, A game development favorite ~
If the picture is not displayed for a long time , Please use Chrome Kernel browser .
版权声明
本文为[Game programming]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220914424439.html
边栏推荐
- 王子救公主(DFS)
- In the context of Internet plus, how can enterprises innovate customer service?
- Itextsharp infrastructure
- 2022 crane driver (limited to bridge crane) examination question bank and online simulation examination
- LSF的常用使用命令总结
- Soatest preliminary understanding
- Completely uninstall antidote 10? What if the antidote uninstall is not clean?
- Unity结合iTextSharp生成PDF 准备dll
- DFS奇偶性剪枝
- CDR2022首发全新版本性能介绍
猜你喜欢
NR polar code 七- SCL(succesive cancellation list decoding)
计蒜客:数独(DFS)
引爆炸弹(DFS)
2022 low voltage electrician examination questions and answers
CDR2022首发全新版本性能介绍
42、使用mmrotate中k3det进行旋转目标检测,并进行mnn部署和ncnn部署
关于C4D动画如何导入Lumion
批处理多个文件合成一个HEX
NR polar code VII - SCL (successful cancellation list coding)
The leader / teacher asks to fill in the EXCEL form document. How to edit the word / Excel file on the mobile phone and fill in the Excel / word electronic document?
随机推荐
Summary of commonly used commands of LSF
FL studio20. 8 the latest Chinese version installation and download graphic tutorial
Ziguang micro financial report is outstanding. What does the triple digit growth of net profit in 2021 depend on
Jerry's CPU performance test [chapter]
Linux系统下以RPM方式如何安装mysql-5.7.9
Gbase 8s group by function introduction
Unity combines itextsharp to generate PDF preparation DLL
Deployment of mask detection flash for yolov5
What is a boolean type?
2022 low voltage electrician examination questions and answers
DFS奇偶性剪枝
FL studio20.8最新中文版本安装下载图文教程
Abused "architect"!
Do447 manage user and team access
In the context of Internet plus, how can enterprises innovate customer service?
[蓝桥杯][2019年第十届真题]外卖店优先级
稳定币是让公链加速死亡或者取代BTC的超级机会?
W801/W800/W806唯一ID/CPUID/FLASHID
关于C4D动画如何导入Lumion
VSCODE + PHP Debug + 名字空间指引