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 Quote 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. Quote 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); Quote Link to comment https://forums.phpfreaks.com/topic/183884-sql-set-urgent/#findComment-970721 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.