B
Bonjour
Hi everybody !
I' d like to check data before inserting.
Select @nb = Count (idCustomer)
From Customer
Where company like '%' + @company+ '%'
If "PEUGEOT SA" already exists, @nb > 0 if I enter "PEUGEOT".
On the other hand, if "PEUGEOT" exists, @nb =0 if I enter "PEUGEOT SA".
I tried to complete ma stored procedure:
or @companylike '%' + company+ '%'
but it doesn't work.
Thanks in advance for any suggestion.
I' d like to check data before inserting.
Select @nb = Count (idCustomer)
From Customer
Where company like '%' + @company+ '%'
If "PEUGEOT SA" already exists, @nb > 0 if I enter "PEUGEOT".
On the other hand, if "PEUGEOT" exists, @nb =0 if I enter "PEUGEOT SA".
I tried to complete ma stored procedure:
or @companylike '%' + company+ '%'
but it doesn't work.
Thanks in advance for any suggestion.