Jump to content

please check if correct


mATOK

Recommended Posts

hey there, I have a column of type varchar that contains something that looks liek the following

Cat 002
Cat 002
Cat 003
Cat 005
Cat 107

etc

What I would like to do is remove the 'Cat ' from every record and be left with only the three digit number.

do I want to execute - UPDATE substring(category, 5, len(category)-4) ?

I'm pretty new to these types of commands and would apreciate confirmation / correction.

thanx
Link to comment
https://forums.phpfreaks.com/topic/17737-please-check-if-correct/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.