Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
'WITH' in SQL SELECT Query

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: 'WITH' in SQL SELECT Query
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: 659
Location: Whitby, ON, Canada

PostPosted: Tue Jul 29, 2014 11:18 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1830
Location: NY,USA

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

Do not go by Version but the concept remains the same,
http://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    Post subject: Reply to: 'WITH' in SQL SELECT Query
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

Senior Member


Joined: 21 Sep 2010
Posts: 1830
Location: NY,USA

PostPosted: Wed Jul 30, 2014 1:28 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 6 Tue Jan 16, 2018 10:49 pm
No new posts reg query on DYNALLOC feature raghuraman123 SYNCSORT 12 Wed Jan 10, 2018 2:42 pm
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts Native SQL Query kishpra DB2 1 Wed Nov 22, 2017 8:38 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us