Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LIKE '%1' Not returning expected records
Message
De
12/07/2010 10:45:43
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
LIKE '%1' Not returning expected records
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01472231
Message ID:
01472231
Vues:
113
I have a query like this:
SELECT [PolicyNumber]
	FROM [dbo].[Policies]	
		WHERE ([PolicyNumber] LIKE '%1')
this returns no records.

If I change it to this:
SELECT [PolicyNumber]
	FROM [dbo].[Policies]	
		WHERE ([PolicyNumber] LIKE '%')
then I get two records, one with PolicyNumber = '00001'

Why doesn't my first query pull this record out?

PolicyNumber is defined as nchar(10).
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform