Brian Leishman
Brian Leishman

Reputation: 8555

Update single character in mysql field

I have a column dedicated to keeping track of which messages on my project were viewed. It's written like "10010", a 1 denoting that the message has been seen and also without making it into many different columns. But how do I make one database call to replace just the 3rd character, or the 5th character in the field? Thanks in advance!

Upvotes: 2

Views: 2881

Answers (1)

ChapMic
ChapMic

Reputation: 28144

The comment was right. If you want more informations you can go there :

Change a character in a field

You just have to change some things (in your project, you don't want to change the first character)

Upvotes: 1

Related Questions