0

I have some data from Sql Server and I want to create the same data in Mysql but I have an error. This is the syntax from Sql server:

ALTER TABLE [SecurityServices].[acces_grp_usr] ADD  CONSTRAINT [DF_ACCES_GRP_USR_ID_CALQ]  DEFAULT ((-1)) FOR [ID_CALQ]

I changed it like this in mysql:

ALTER TABLE acces_grp_usr ADD  CONSTRAINT DF_ACCES_GRP_USR_ID_CALQ  DEFAULT ((-1)) FOR ID_CALQ

and this is the error:

Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT ((-1)) FOR ID_CALQ' at line 1

thanks for your help.

John Conde
  • 217,595
  • 99
  • 455
  • 496
Jihana Anb
  • 11
  • 6

0 Answers0