How to convert mssql script to mysql

后端 未结 3 865
遥遥无期
遥遥无期 2020-12-30 06:03

I tried to convert script from MS SQL Server to MySql.

I couldn\'t find any convenience approach to do this conversion.

I tried this MS SQL Server to MySQL C

相关标签:
3条回答
  • 2020-12-30 06:46

    You don't just "convert" TSQL to SQL code for MySQL. You need to know the different datatypes, column constraints, etc. You hit the first of many roadblocks: MySQL uses AUTO_INCREMENT instead of SQL Server's IDENTITY field constraint.

    EDIT: There are utilities, but you should still understand what the changes are, as they'll affect many things (including performance and future development against the DB). Duplicate of several other posts (dead link removed).

    0 讨论(0)
  • 2020-12-30 06:59

    The converter at http://burrist.com/mstomy.php runs a set of regexps to do the conversion – the regexps list isn’t exhaustive and can be modified as required. I’ve added a couple of extra lines to the standard regexps and it now creates a working version of your script up to the point you start inserting data (it only does tha structure not the data). Hope this is of interest.

    Cheers sql-hub.com

    0 讨论(0)
  • 2020-12-30 07:00

    I used this online tools and its absolutely fine. http://www.sqlines.com/online

    0 讨论(0)
提交回复
热议问题