Comments - How to use an insert using variable column names in stored procedure

5 years, 4 months ago Roshni K

set @value = 'comment'; set @s1=concat("update log set ", @value,"=? "); execute immediate @s1 using 'lalalala';

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.