I have the following table:
-----------------
ID | DESCRIPTION
-----------------
7 | qweqwe
8 | asdasd
9 |
10 | zxczxc
How can I use the procedure to make her like this?
-----------------
ID | DESCRIPTION
-----------------
7 | qweqwe_[7]
8 | asdasd_[8]
9 |
10 | zxczxc_[10]
That is, if the field is not empty, then I need to add to the end _[id].
You don’t need a procedure, it can be done in SQL only.