Soucis avec le substr
Résolu
Bonjour,
Je suis entrain d'utiliser la commande substr ,je fais cette commande :
select * from u_dem day between substr(day,1,8)="20130522" and substr(day,1,8)="20130604";
j 'ai obtenu comme message d'erreur :
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'between substr(day,1,8)="20130522" and substr(day,1,8)="20130604"' at line 1
Merci d'avance
Je suis entrain d'utiliser la commande substr ,je fais cette commande :
select * from u_dem day between substr(day,1,8)="20130522" and substr(day,1,8)="20130604";
j 'ai obtenu comme message d'erreur :
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'between substr(day,1,8)="20130522" and substr(day,1,8)="20130604"' at line 1
Merci d'avance