开发中遇到这样的问题:
有一张数据表,格式如下:
Id | timestamp | pic
其中Id 属性为uniqueidentifier,timestamp属性为timestamp, null, pic属性为binary(max) null。写存储过程中,要用openrowset写入,而Id这个栏无法用NEWID()生成。咋办捏?解决方法也很简单,直接在图示地方将NEWID()填入就好了。
开发中遇到这样的问题:
有一张数据表,格式如下:
Id | timestamp | pic
其中Id 属性为uniqueidentifier,timestamp属性为timestamp, null, pic属性为binary(max) null。写存储过程中,要用openrowset写入,而Id这个栏无法用NEWID()生成。咋办捏?解决方法也很简单,直接在图示地方将NEWID()填入就好了。