Jump to content

[SOLVED] Need help with query


jim.davidson

Recommended Posts

I'm new to mySQL and have a very simple question.

 

I have a table of states I want to add two spaces to the front of the name.

 

I'm thinking this will do it but want to validate before I screw it up

 

Will this do it?

 

update states set state_name = "  "+state_name

 

Or is it going to try to do an artithmatic operation and wipe out the state_name?

 

Link to comment
https://forums.phpfreaks.com/topic/53765-solved-need-help-with-query/
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.