alter
proc
AnalysisPhoneModel
@phonenum
char
(
11
),
@mytablename
char
(
100
)
as
exec ( ' select * from ' + @mytablename + ' where phonenum= ' + @phonenum )
as
exec ( ' select * from ' + @mytablename + ' where phonenum= ' + @phonenum )