Jump to content
Sign in to follow this  
Siol

Select avec max 5 caracteres

Rate this topic

Recommended Posts

Bonjour,

Je voudrais avec une requête SQL selectionné tout les "nom" de ma table "article" qui ont maximum 5 caractere.

Comment m'y prendre ?

Cordialement.

Share this post


Link to post
Share on other sites

Salut,

il faut utiliser CHARACTER_LENGTH...

SELECT ... WHERE CHARACTER_LENGTH(article.nom) < 6 ...

A+

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...