当前位置:网站首页>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
边栏推荐
- Solve the problem when installing MySQL
- 2n皇后问题
- Tight coupling of visual wheel odometer
- [Blue Bridge Cup] [10th real topic in 2019] priority of takeout shop
- Question bank and online simulation examination for safety management personnel of hazardous chemical business units in 2022
- W801/W800/W806唯一ID/CPUID/FLASHID
- Introduction to gbase8s SQL Engine framework
- Introduction to gbase 8s shared memory buffer pool
- What are the benefits of writing unit tests using the unit test framework?
- How to install mysql-5.7.9 in RPM mode under Linux system
猜你喜欢

Digital collection platform settled in digital collection platform to develop SaaS platform of digital collection

Futr3d: a unified 3D detection framework for sensor fusion

(product resources) mingdeyang ad8488 module high performance digital X-ray FMC interface 128 analog channel high-speed ADC chip

Solve the problem when installing MySQL

FL studio20.8最新中文版本安装下载图文教程

W801 / w800 WiFi socket development (I) - UDP

力扣(LeetCode)112. 路径总和(2022.04.22)

2022 low voltage electrician examination questions and answers

The most easy to understand service container and scope of dependency injection

全排列(DFS和next_permutation解法)
随机推荐
mb_ substr()、mb_ Strpos() function (story)
Android sqliteopenhelper data table structure upgrade
. net (c) MySQL conn.open() reports an error: solution to SSL connection error
W801 / w800 WiFi socket development (II) - UDP Bluetooth control WiFi connection
使用单元测试框架编写单元测试的好处?
科技云报道:云计算进入“下半场”,国产云的出路在哪儿?
角色个人属性英文缩写
[经验教程]支付宝余额自动转入余额宝怎么设置关闭取消支付宝余额自动转入余额宝?
iTextSharp 页面设置
J-Link RTT使用
安装mysql出问题求解决
NPM -- configure Taobao image
数字藏品平台入驻 数字藏品平台开发 数字藏品SaaS平台
DO447管理用户和团队的访问
Vscode + PHP debug + namespace guidelines
CDR2022首发全新版本性能介绍
Prince saves Princess (DFS)
Leetcode 112 Total path (2022.04.22)
最长公共子序列(记录路径版)
计蒜客(踏青)(染色块问题的DFS和BFS解法)