开发者

EXEC with an EXEC

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜