New SQL Features in Firebird
New SQL Features in Firebird
New SQL Features in Firebird
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The “standard” way<br />
46<br />
Common <strong>SQL</strong> : cursor stability<br />
● Rows to be <strong>in</strong>serted\updated\deleted should be marked first<br />
● Marked rows is <strong>in</strong>serted\updated\deleted then<br />
● Pros<br />
● rowset is stable and is not affected by DML statement itself<br />
● Cons<br />
● Marks should be saved somewhere and rows will be visited aga<strong>in</strong>, or<br />
● Set of marked rows should be saved somewhere and this store will<br />
be visited aga<strong>in</strong><br />
● Note : this could be reached <strong>in</strong> <strong>Firebird</strong> us<strong>in</strong>g (well known) workaround:<br />
force query to have SORT <strong>in</strong> PLAN - it will materialize implicit cursor and<br />
make it stable<br />
Luxembourg 2011 Whats new <strong>in</strong> <strong>Firebird</strong> <strong>SQL</strong>