Heyaa SQL-wizards. How do i combine two columns into one? Firstname and Lastname -columns need to be combined as Name -column. Databases previous user fucked up with tableformats and this table contains more than 900 names....
Name:
Anonymous2007-07-30 4:21 ID:E8dS2sDg
Firstname +' '+ Lastname
Name:
Anonymous2007-07-30 5:20 ID:SIo8e1Qp
It's pronounced ``Sequel''
Name:
Anonymous2007-07-30 6:27 ID:ke1hBn5l
Create the Name column and run:
MySQL: UPDATE YourTable SET Name = CONCAT( Firstname, ' ', Lastname )
Oracle: UPDATE YourTable SET Name = Firstname || ' ' || Lastname
MSSQL: UPDATE YourTable SET Name = Firstname + ' ' + Lastname
>>8-10
You are all wrong. It is pronounced ``Sequel''. I'm telling you this so in the future you won't appear foolish in front of fellow contempories. Anonymous delivers.