求助存储过程问题
我想在存储过程中使用通配符但好像有些问题,望大家帮忙看一下
use pubs
create procedure aa
@type char(12)
as
select * from titles where type like @type
go
当我执行时:
exec aa 'busines%'
能出现四条结果
当我执行
exec aa 'busine%'
时一条结果也没有出来,只少了一个字,应该查的范围更广了,为什么一个结果也不出来呢?