当前位置:网站首页>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
边栏推荐
- mb_substr()、mb_strpos()函数(故事篇)
- Error in face detection and signature of Tencent cloud interface
- 哪些代码需要做单元测试?
- Blocking type of gbase 8s concurrency control
- W801 / w800 WiFi socket development (I) - UDP
- 《维C中国》乡村助农暖人心第三站嘉宝果农场
- Update description of the latest process engine flowable 6.7.2
- npm——配置淘宝镜像
- Android sqliteopenhelper data table structure upgrade
- [experience tutorial] Alipay balance automatically transferred to the balance of treasure how to set off, cancel Alipay balance automatically transferred to balance treasure?
猜你喜欢

Google developer tool preserve log

关于C4D动画如何导入Lumion

Futr3d: a unified 3D detection framework for sensor fusion

W801 / w800 WiFi socket development (I) - UDP

W801/W800-wifi-socket开发(一)-UDP

Redis实现分布式锁

Oracle database query lock table SQL script and delete lock information script (necessary for database development ETL and DBA)

批处理多个文件合成一个HEX

科技云报道:云计算进入“下半场”,国产云的出路在哪儿?

(product resources) mingdeyang ad8488 module high performance digital X-ray FMC interface 128 analog channel high-speed ADC chip
随机推荐
腾讯云接口进行人脸检测 和签名出错问题
Abused "architect"!
Chapter 6 uses Matplotlib to draw thermodynamic diagram
安装mysql出问题求解决
JSP basic knowledge summary
Level 4 city area table xlsx, SQL file, domestic, provincial, county, street, township level 4 address in China (name, linkage ID, level, end level or not (1-yes))
无关联进程间通信 —— 命名管道的创建和使用
Redis实现分布式锁
Tight coupling of visual wheel odometer
W801 / w800 WiFi socket development (I) - UDP
Completely uninstall antidote 10? What if the antidote uninstall is not clean?
42、使用mmrotate中k3det进行旋转目标检测,并进行mnn部署和ncnn部署
领导/老师让填写电子excel表格文档可手机上如何编辑word/excel文件填写excel/word电子文档?
ai2022新功能,illustrator 2022 新功能介绍
找数字(DFS)
力扣(LeetCode)112. 路径总和(2022.04.22)
Server 2019 the available memory of the server is half of the actual memory
J-link v9 使用技巧之虚拟串口功能
最长公共子序列(记录路径版)
科技云报道:云计算进入“下半场”,国产云的出路在哪儿?