We need to combine the column name and surname in the user table. For example, in the name column the value is "Ivan." And in the column surname "Ivanov". And it is necessary that in one column the name be "Ivan Ivanov".
|
1 answer
increase the size of the varchar type
alter table users alter column name varchar(125); update data
update users set name = name + ' ' + surname; remove surname column
alter table users drop column surname; - 3numbers are added, not strings; strings must be combined; correct on
concatorconcat_ws, otherwise your answer is just because of this and is not correct - BOPOH
|

name + ' ' + surname;doconcat_ws(' ', name, surname), add numbers, not strings, therefore 0 - BOPOH