Skip to content

Commit

Permalink
MySQL uses the CONCAT() function for string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverhaagh committed Jan 17, 2024
1 parent 089b51a commit 629f6e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BEGIN;
UPDATE `services` SET `mrn` = `mrn` + ':' + `instance_version` WHERE `instance_version` != '';
UPDATE `services` SET `mrn` = CONCAT(`mrn`, ':', `instance_version`) WHERE `instance_version` != '';
ALTER TABLE `services` DROP COLUMN `instance_version`;
COMMIT;

0 comments on commit 629f6e7

Please sign in to comment.