开发者

EXEC with an EXEC

开发者 https://www.devze.com 2022-12-23 23:13 出处:网络
Is i开发者_如何学运维t possible to have an EXEC within an EXEC in SQL? e.g. EXEC(\'EXEC ...\')In SQL Server, yes.try:

Is i开发者_如何学运维t possible to have an EXEC within an EXEC in SQL?

e.g. EXEC('EXEC ...')


In SQL Server, yes. try:

EXEC ('EXEC sp_helpdb')

or

EXEC ('EXEC (''EXEC sp_helpdb'')')


Yes. With an exec statement you can call any statement you could write into a Management Studio query batch including another exec statement.

0

精彩评论

暂无评论...
验证码 换一张
取 消