[英]Best approach to convert a MySQL procedure to SQL Server
I have the following script but unable to migrate using SQL Server migration for MySQL.我有以下脚本,但无法使用 MySQL 的 SQL Server 迁移进行迁移。
CREATE PROCEDURE [usp_contacts_delete]
(_contactid int)
BEGIN
DELETE
FROM dbo.rivereast_contacts
WHERE contactid = _contactid
;
END
Which software can I use to migrate it, if not how can I manually change it to create a spx for SQL Server?我可以使用哪种软件来迁移它,如果不能,我如何手动更改它以创建 SQL Server 的 spx?
This shouldn't be hard:这应该不难:
CREATE PROCEDURE usp_contacts_delete (
@contactid int
) AS
BEGIN
DELETE FROM dbo.rivereast_contacts
WHERE contactid = @contactid;
END;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.