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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading LONG VARCHAR into string

Status
Not open for further replies.

NorbertNetzwerk

Technical User
Nov 7, 2002
6
0
0
DE
Hi,

using SQLbase 7.0, I have 2 tables containing product data. Usually, in table SYNONYMS several descriptive strings (CHAR(100)) are held for each product listed in table STOFF.

Problem: some products have empty entries in SYNONYMS. As a last resort, there is a LONG VARCHAR field in STOFF which would do. I would like to copy the first 100 chars from it into the string field in SYNONYMS.

How can this be done? @substring() does not support LONG args.

Can it be done using a procedure? I am not very proficient in SQLbase so I would need any pointer at all.

I even thought of UNLOADing the db and using an awk script...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top