MS SQL Server 2008 "with (nolock)" equivalent for IBM DB2 9.7

user1340582 picture user1340582 · Oct 28, 2013 · Viewed 12.7k times · Source

In MS SQL Server 2008 you can write like this:

FROM EMPLOYEE as A with (nolock)

Is there an equivalent syntax for DB2 9.7? Thanks

Answer

OzrenTkalcecKrznaric picture OzrenTkalcecKrznaric · Oct 28, 2013

DB2: Uncomitted Read = WITH UR

SELECT * FROM whatevertable WITH UR