Subject | Re: [ib-support] SQL Error |
---|---|
Author | Arno Brinkman |
Post date | 2002-12-22T12:54:49Z |
Hi,
SUBSTRING(<expr> FROM <start_pos> [FOR <length>])
So this should work :
UPDATE MemberNames
SET username =
SUBSTRING( firstname FROM 1 FOR 1 ) ||
SUBSTRING( lastname FROM 1 FOR 7 );
Regards,
Arno Brinkman
> Here is what I just tried. I get an error at the space after firstname.The SUBSTRING syntax is
> update MemberNames
> set username =
> SUBSTRING( firstname 1 FOR 1 ) ||
> SUBSTRING( lastname 1 FOR 7 );
SUBSTRING(<expr> FROM <start_pos> [FOR <length>])
So this should work :
UPDATE MemberNames
SET username =
SUBSTRING( firstname FROM 1 FOR 1 ) ||
SUBSTRING( lastname FROM 1 FOR 7 );
Regards,
Arno Brinkman