[英]SQL Server stored procedure with uniqueidentifier
I have written this to filter a view with uniqueidentifier GUID : 我已经编写了此代码,以使用uniqueidentifier GUID过滤视图:
Alter PROCEDURE popclinom(@ixliente nvarchar(60))
as
select
idcliente, nome, endere, Tel, celular, cidade, cpf, iest
from
Vw_RegCliente
where
idcliente like cast(@ixcliente as uniqueidentifier)
but this code returns 但是此代码返回
Must declare the scalar variable "@ixcliente".
必须声明标量变量“ @ixcliente”。
您在变量中缺少“ c”: @ixliente
<> @ixcliente
You have made syntax mistake: 您犯了语法错误:
ix* c *liente instead of ixliente
ix * c * liente代替
ixliente
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.