Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

requete like

2 réponses
Avatar
Christian
bonjour,
comment puis je faire un select * from matable avec un LIKE qui marche
sur une colonne int ou sur une colonne text

merci

2 réponses

Avatar
rudi bruchez
Christian a écrit:

comment puis je faire un select * from matable avec un LIKE qui marche
sur une colonne int ou sur une colonne text



Bonjour,
Le LIKE fonctionne aussi bien avec un int (par conversion implicite,
attention aux performances) qu'avec un text, à utiliser comme avec un
(var)char.

--
Rudi Bruchez
Consultant indépendant
modélisation, administration, optimisation,
solutions MS SQL Server et informatique libre.
MCDBA, SCJP2
http://www.babaluga.com/
Avatar
Christian
rudi bruchez a écrit :
Christian a écrit:

comment puis je faire un select * from matable avec un LIKE qui marche
sur une colonne int ou sur une colonne text



Bonjour,
Le LIKE fonctionne aussi bien avec un int (par conversion implicite,
attention aux performances) qu'avec un text, à utiliser comme avec un
(var)char.



merci