dbljackson
Programmer
I would like to pass a parameter to a stored procedure thats used in a like condition of the where clause.
Example:
Select all customer that start with "A"
Declare @Cust_no as char(4)
Select *
from customer
where customer_number like @Cust_no
Not having any luck with this. I have passed "A%". SP always
returns Null. Any comments appreciated.
TIA
Example:
Select all customer that start with "A"
Declare @Cust_no as char(4)
Select *
from customer
where customer_number like @Cust_no
Not having any luck with this. I have passed "A%". SP always
returns Null. Any comments appreciated.
TIA