来大神帮忙看看
消息 4511,级别 16,状态 1,过程 HOSP_MEDICATION_INFO,第 4 行
创建视图或函数失败,因为没有为第 26 列指定列名。
我对SQL Server不懂。
创建视图出这个异常,单查询的话有数据。 sql?server 异常
[解决办法]
'123456' AS HOSPID ,
'' ,
'' ,
'' ,
NULL
FROM HIS.ZD_YP yp
'123456' AS HOSPID ,
'' AS a,
'' AS b,
'' AS c,
NULL AS d
FROM HIS.ZD_YP yp