Vivid Lust Posted December 3, 2009 Share Posted December 3, 2009 Hey all Say this was my database: name surname fullName foo bar bar foo How could I create an UPDATE query which would be something like this: UPDATE database SET fullName = name + surname thanks all, hope someone could give me an answer as soon as posible, thanks again, much appreciated Link to comment https://forums.phpfreaks.com/topic/183884-sql-set-urgent/ Share on other sites More sharing options...
mikesta707 Posted December 3, 2009 Share Posted December 3, 2009 you answered your own question UPDATE database SET fullName = name + surname that should do it. Link to comment https://forums.phpfreaks.com/topic/183884-sql-set-urgent/#findComment-970712 Share on other sites More sharing options...
Mchl Posted December 3, 2009 Share Posted December 3, 2009 It's MySQL I presume? UPDATE database SET fullName = CONCAT(name,' ',surname); Link to comment https://forums.phpfreaks.com/topic/183884-sql-set-urgent/#findComment-970721 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.