我看mysql现在还不能这样做吧
select * from tablename;
这一句的tablename好像是不允许为变量,无论怎么赋值它还是不变,
set tbname = tablename;值是可以传进来,通过执行select tbname;来查看。