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 > String ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-04, 15:50
db2beginer db2beginer is offline
Registered User
 
Join Date: Feb 2004
Posts: 5
String ?

I have a table INFO with three columns in db2.

Table Name Field Type
Name char
Loc char
Profession char.

Column Name has the following fields
A
B
C
D
E
F
G

When I execute this query I get nothing back.

Select * from INFO where Name > 'B';

Thanks for your help in advance.
Reply With Quote
  #2 (permalink)  
Old 02-24-04, 16:51
chuzhoi chuzhoi is offline
Registered User
 
Join Date: Dec 2002
Posts: 134
Re: String ?

What tool do you use to execute query?
If it's command line/shell please add double quotes around SQL (> might be working as stream redirection)

db2 "with info(name) as (values 'A', 'B', 'C', 'D', 'E') Select * from INFO
where Name > 'B'"

NAME
----
C
D
E
Reply With Quote
  #3 (permalink)  
Old 02-24-04, 17:11
db2beginer db2beginer is offline
Registered User
 
Join Date: Feb 2004
Posts: 5
Re: String ?

I am using QMF. It still wont work.
Reply With Quote
  #4 (permalink)  
Old 02-24-04, 21:07
Metatron Metatron is offline
Registered User
 
Join Date: Feb 2004
Posts: 21
it's works.
db2 "with info(name) as (values 'A', 'B', 'C', 'D', 'E') Select * from INFO where Name > 'B'"
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