If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 queries

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-04, 17:33
English_Bloke82 English_Bloke82 is offline
Registered User
 
Join Date: Feb 2004
Posts: 4
DB2 queries

Hi just a quick question, how do you query tables in DB2. Ive been uysing mysql so know most of the commands, but if i want to search a table for things like "select * from person where birthdate>'1982'" it doesnt let me. Can i use sql commands? for example like, >, <, %text%, and if so how? Thanks!
Reply With Quote
  #2 (permalink)  
Old 02-11-04, 17:49
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: DB2 queries

You may want to look at the SQL reference:

http://www-3.ibm.com/cgi-bin/db2www/...bs.d2w/en_main

There are some differences between SQL dialects; in your case it is the way db2 handles date-time literals, I assume.
Reply With Quote
  #3 (permalink)  
Old 02-11-04, 19:02
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: DB2 queries

You may also want to have a look at the SQL cookbook ...

Link available in www.db2click.com

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On