Visa ett inlägg
Oläst 2005-06-25, 15:34 #5
WizKid WizKid är inte uppkopplad
Mycket flitig postare
 
Reg.datum: Apr 2004
Inlägg: 618
WizKid WizKid är inte uppkopplad
Mycket flitig postare
 
Reg.datum: Apr 2004
Inlägg: 618
Antagligen SUBSTRING tillsammans med LENGTH. Mer om sträng funktioner i MySQL hittar du på http://dev.mysql.com/doc/mysql/en/string-functions.html

"username = LEFT(username, LENGTH(username)-4)" eller "username = SUBSTRING(username, 0, LENGTH(username)-4)" borde nog fungera.
WizKid är inte uppkopplad   Svara med citatSvara med citat