1. identity(1,1) -> auto_increment;
2. datetime -> timestamp
3. default getdate() -> default now()
4. rid of "[]"
5. change sql comment "--" to "#"
6. default value if in (), should rid of '()';
7. replace "go" with ";"
8. rid of "On primary"
9. change:
 PRIMARY KEY  CLUSTERED
 (
  Item_ID
 )  ON PRIMARY

to
 primary key(item_id)

10. rid of " COLLATE Chinese_PRC_CI_AS"
11. year_month is a reserved word, should be changed to yearmonth;

after change all sql from mssql to mysql and create tables in mysql. u can use DTS to transfer data from mssql to mysql easily, and what's more, u can insert value into mysql's identity column with no change.

相关文章:

  • 2021-11-24
  • 2021-06-24
  • 2022-01-16
  • 2021-08-30
  • 2021-04-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-15
  • 2022-01-16
  • 2022-12-23
  • 2021-04-12
  • 2022-12-23
  • 2021-11-06
  • 2021-08-01
相关资源
相似解决方案