错误[Pe167]:类型为“char __code *”的参数与类型为“char const *”的参数不兼容 Error[Pe167]: argument of type "unsigned char __xdata *" is incompatible with parameter of type "unsigned char *"
执行下列两个插入命令: 插入命令1: insert into xinxi (rtitle,rnote,ruserid) values ('hello','good',1) 插入命令2: insert into xinxi (rtitle,rnote) values ('hello','good') 其结果都是在表XINXI中插入如下记录,尽管命令1中用户给RUSERID赋值为1: RTITLE RNOTE RUSERID Hello good 5 XINXI_INSERT触发器代码如下: create trigger xinxi_insert on xinxi for insert as declare @userid int --获得当前用户的USERID set @userid=user_id(user) --更新当前记录的RUSERID字段 --INSERTED表是一个逻辑的表。