I have two columns in one table. I have created a third column in that same table and I want to concatenates both columns into the third. For example, I have two columns, first_name and last_name. The third column is titled full_name. What would I write as a sql query to combine first_name and last_name to combine and insert into full_name. Also, I want to concatenate a space between both columns when being inserted into full_name.
Share
Use
CONCAT():If either first_name or last_name can contain
NULLvalues, you’ll want to do:So as to prevent a
NULLvalue being returned when just one of the parameters toCONCATis NULL.