一个SQL存储过程声明时遇到的疑问

来源:百度知道 编辑:UC知道 时间:2024/06/17 19:34:28
create proc listCustomersByCity @country nvarchar(30)='%'
as

请问,语句中
@country nvarchar(30)='%'
'%' 是代表什么意思
谢谢

@country nvarchar(30)='%' --存储过程默认值

create proc listCustomersByCity @country nvarchar(30)='%'
as
select * from tableName where Column like country
go

exec listCustomersByCity --可以不指定参数

@country nvarchar(30)='%'

@参数名 数据类型 = 默认值

%是一个通配符