HP3000-L Archives

December 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Fri, 22 Dec 2000 15:37:17 +0530
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
Hello,

You need to use function "substring" to extract a substring.

SELECT  * FROM DBNAME.SET_NAME
 WHERE SUBSTRING(FIELD_NAME,1,1) = '1';

Regards,
Sekhar.

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]]On
Behalf Of Gibson Nichols
Sent: Thursday, December 21, 2000 8:32 PM
To: [log in to unmask]
Subject: [HP3000-L] SQL substr function - need syntax


I'm trying to extract a substring using the SQL substr function.
I get an error.  Can anyone tell me how this should be done?

SELECT  * FROM DBNAME.SET_NAME
 WHERE SUBSTR(FIELD_NAME,1,1) = '1';
                                                  |
Syntax error.  (DBERR 1001)
isql=>

ATOM RSS1 RSS2