Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Views

Status
Not open for further replies.

t16turbo

Programmer
Mar 22, 2005
315
GB
hi,

I have created a view in an Oracel database using this code:
CREATE VIEW PDSStuff AS
SELECT o.dsti_proj_ref, o.ID, s.UNIQUE_NAME, substr(dsti_proj_ref,1,6)||'-'||substr(dsti_proj_ref,8,1) As PDSCode
FROM odf_ca_project o, srm_projects s
WHERE o.id = s.id AND o.dsti_proj_ref Like 'D0%'


when I try to run this code on my Sybase database via MSQuery, it complains that SUBSTR is not a built in function name. How can Ido this in Sybase?
 
Hi
We have substring(expression/string,start,length) function in sybase to do the same
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top