Thomas Bratt
Thomas Bratt

Reputation: 51832

Is there an SQL Server equivalent to Oracle's RETURNING statement?

Is there an SQL Server equivalent to Oracle's RETURNING statement?

I'm wondering if the OUTPUT clause would help.

Upvotes: 0

Views: 1329

Answers (1)

Quassnoi
Quassnoi

Reputation: 425471

Yes, the OUTPUT clause is exactly what you need.

In SQL Server 2008 you can even chain the output clauses.

Upvotes: 3

Related Questions