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

selecting few characters from a field

Status
Not open for further replies.

wdbouk

Technical User
May 28, 2003
81
CA
Hello,

I have a text field with 9 characters and i want to select only the first 8 of it. I tried the following
UPDATE ISSUE SET Cusip8 =(Cusip9,8);but i received a syntax error. Any other suggestion?
thx
 
...SET Cusip8=SUBSTRING(Cusip8, 1, 8)...

or

...SET Cusip8=RIGHT(Cusip8, 8)...





Bob Boffin
 
To update value to the first 8 chars you should be using
Code:
update issue
set    cusip8 = left(cusip8, 8)
instead of right function.

Regards,
AA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top