Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Are there any issues with the use of deleted and inserted pseudo columns from Microsoft SQL Server?

0
Posted

Are there any issues with the use of deleted and inserted pseudo columns from Microsoft SQL Server?

0

The parser in the Microsoft SQL Server 7.0 plug-in incorrectly converts Microsoft SQL Server T-SQL stored procedures that contain the following: SELECT @one=COL1, @two=COL2 FROM DELETED The parser converts stored procedures to the following in PL/SQL: SELECT :OLD.COL1, :OLD.COL2 INTO one, two FROM DUAL; SELECT @one=COL1, @two=COL2 FROM DELETED, fred SELECT COL1, COL2 INTO one, two FROM fred; StoO_rowcnt := SQL%ROWCOUNT; You must manually correct PL/SQL stored procedures that are converted in this way. Rewrite the code as follows: SELECT :OLD.COL1, :OLD.COL2 INTO one, two FROM fred; StoO_rowcnt := SQL%ROWCOUNT; See Also: For more information, see “Parsing”.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123