I'm looking for some help on using the CONCAT function.
I have a table that generates an autonumber onsave. Using the After Save feature I want to use CONCAT to Add a text prefix to the autonumber, so it displays as "PF1001" and saves that to another field. I've tried to set this so it only applies where it hasn't been done before and the field that will have the concatenated name is null.
I've tried the following code but it doesn't appear to work.
Code: Select all
UPDATE sln_prepared_info
SET sln_prepared_solutionnumber=CONCAT("SL"+sln_prepared_autonumber)
WHERE sln_prepared_solution_number=null
Thanks,
Paul