更新时间:2023-02-14 11:13:53
来自此"SQL Server MySQL迁移助手"工具,并使用该工具将单个MySQL查询转换为SQL Server查询:
From this article by Brian Swan, you can download the SQL Server Migration Assistant for MySQL tool and use it to convert a single MySQL query to a SQL Server query:
创建项目:下载SSMA,创建项目和连接数据库所需的所有信息位于在MySQL Metadata Explorer中,导航到MySQL数据库的Statements目录:
In the MySQL Metadata Explorer, navigate to the Statements directory of your MySQL database:
SELECT post_title, post_date FROM wp_posts ORDER BY post_date LIMIT 5 OFFSET 5;
SELECT post_title, post_date FROM wp_posts ORDER BY post_date LIMIT 5 OFFSET 5;
请注意,SSMA无法成功转换所有MySQL查询,但大多数情况下都可以转换.它不翻译某些特定于MySQL的功能(例如FOUND_ROW()
).
Note that SSMA will not successfully translate all MySQL queries, but it does for most. It does not translate some MySQL-specific functions (for example FOUND_ROW()
).