无法将值NULL插入列'rowguid',列不允许空值。 INSERT失败。 [英] Cannot insert the value NULL into column 'rowguid', column does not allow nulls. INSERT fails.

查看:674
本文介绍了无法将值NULL插入列'rowguid',列不允许空值。 INSERT失败。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何避免这个问题:

how i can avoid this problem:

Cannot insert the value NULL into column 'rowguid', column does not allow nulls. INSERT fails.



示例querry:


sample querry:

insert into tablename (col1,col2,col3)  values('v1','v2','v3')

推荐答案

检查数据库模式 - rowguid期望一个值(因为'allow nulls'很可能是假的)。

结果,你得到这个错误。



由于guid是唯一标识符,因此您可能需要传递适当的值。我建议您检查整个代码流,以确保发送正确的值。
Check your database schema - rowguid expects a value (as 'allow nulls' is most probably false).
As a result, you get this error.

Since a guid is a unique identifier, you might need to pass a value that is appropriate. I recommend you check your entire code flow to ensure you send in the correct value.


检查表设计并设置allow null ........
Check you Table design and set allow null........


如果'rowguid'列被标记为主键,则无法插入空值。
You can't insert null values if your 'rowguid' column is marked as Primary key.


这篇关于无法将值NULL插入列'rowguid',列不允许空值。 INSERT失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆