1
我有表TEST_TABLE有3列COL1(Number),COL2(Varchar),COL3(Date)。 我想在兩個不同的事務的匿名塊中查找以下查詢的結果。一個用於當前交易,另一個用於前一個交易。如何使用SCN做到這一點?使用ORA_ROWSCN查找當前和前一個事務
BEGIN
Select col3 into v_curr_date from test_table where col1=123; --Current
uncommitted Transaction
Select col3 into v_prev_date from test_table where col1=123; --How to
modify this query to find for immediately Previous committed Transaction.
END ;
我沒有看到用'SELECT ..INTO'語句提交的事務中的點。 –