IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

'WITH' in SQL SELECT Query


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Arunkumar Chandrasekaran

New User


Joined: 01 Jun 2010
Posts: 63
Location: India

PostPosted: Tue Jul 29, 2014 11:02 pm
Reply with quote

Hi ,

I today I happened to a SQL SELECT Query in our system.Please see the query below.


Code:
SELECT * FROM  tbl_name WITH  UR ;

Here I couldn't understand what 'WITH' is doing here.I googled but couldn't find WITH in any SQL query.Could some know this explain??

UR - here may be related to table.Actually the table is called User Registration table.

Thanks in advance!!
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Tue Jul 29, 2014 11:18 pm
Reply with quote

Look up Uncommitted Read in the DB2 Application Programmers Guide.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Tue Jul 29, 2014 11:44 pm
Reply with quote

Do not go by Version but the concept remains the same,
www.ibm.com/developerworks/data/library/techarticle/dm-0509schuetz/
Back to top
View user's profile Send private message
Arunkumar Chandrasekaran

New User


Joined: 01 Jun 2010
Posts: 63
Location: India

PostPosted: Wed Jul 30, 2014 12:51 am
Reply with quote

Hi Don & Rohit,

Thank you somuch for the reply.Now I got it.

I should have focused on 'UR' instead of 'WITH' icon_smile.gif
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Wed Jul 30, 2014 1:28 am
Reply with quote

Its never too late, " Happy learning!!!!"
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts SELECT from data change table DB2 5
Search our Forums:

Back to Top