项目sql中遇到的问题identity off

Explicit value specified for identity field in table 'ep_batch_adjcrlmt_record' when 'SET IDENTITY_INSERT' is OFF.

 

其实也不算原创,除了这个错一查才知道是因为identity默认是设置成off的,这样insert语句中的主键就不需要插入了,如果要插入,就要把identity_insert设置成on,但这样一般没必要。

 

 

猜你喜欢

转载自blog.csdn.net/qwerty123501029/article/details/8587101