2009-07-09 6 views

Répondre

11

Essayez d'échapper à la citation (') avec une autre citation

?.
declare @FISH TABLE (
    Name varchar(20) 
) 

insert into @FISH values ('COD''N''CHIPS') 
insert into @FISH values ('CODNCHIPS') 
SELECT * FROM FISH WHERE [Name] LIKE 'COD''N''CHIPS' 

Imprime

COD'N'CHIPS 

Comme prévu.

+0

Merci beaucoup –

Questions connexes