declare @p1 varchar(50);
set @p1 = 'select * from '+REPLACE((select Account from billcreatelog),' ','')+'..t_user';
exec (@p1)
declare @p1 varchar(50);
set @p1 = 'select * from '+REPLACE((select Account from billcreatelog),' ','')+'..t_user';
exec (@p1)
本文标题:实现不确定表名的select
本文链接:https://www.haomeiwen.com/subject/jaetsftx.html
网友评论