How to use prepare statement for Use database in Mysql

后端 未结 0 607
野趣味
野趣味 2021-01-16 06:27
set @switch_schema= concat(\'use \', v6_schema, \';\');

select @switch_schema; 
PREPARE s3 from @switch_schema;
EXECUTE s3;

Prepare statement does

相关标签:
回答
  • 消灭零回复
提交回复
热议问题