Quantcast
Channel: SCN : All Content - SAP Applications on SAP Adaptive Server Enterprise (SAP ASE)
Viewing all articles
Browse latest Browse all 956

how to count the number of deleted rows processed

$
0
0

Sybase ASE version: 15.7-SP52

 

Hi all,

 

I have a delete statement that will potentially delete millions of rows

 

DELETE from TAB_A where COL_A='Y'

 

The delete is long, at some point I'd like to know how many rows were deleted.

 

If I do SELECT COUNT(*) from TAB_A where COL_A='Y', the query should be locked because of the exclusive-lock held by the DELETE in progress.

 

If this is the case, how can I actually count the number of rows deleted so far?

 

Thanks all

 

Simon


Viewing all articles
Browse latest Browse all 956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>