I have table that has two columns and I need to concatenate these two and update first column with result.
For example assume this is my table:
+----+-------+-------+
| id | col1 | col2 |
+----+-------+-------+
| 1 | text1 | text2 |
+----+-------+-------+
| 2 | text3 | text4 |
+----+-------+-------+
after concatenation my table should be:
+----+-------------+-------+
| id | col1 | col2 |
+----+-------------+-------+
| 1 | text1.text2 | text2 |
+----+-------------+-------+
| 2 | text3.text4 | text4 |
+----+-------------+-------+
How can I do this using SQL?
Try this (for MySQL)
and this for MS-SQL