MySQL Forums
Forum List  »  Portuguese

Re: Como pegar apenas parte de um valor
Posted by: Henrique Nacamae
Date: October 07, 2008 10:34AM

tente isso:


SELECT LEFT(codigo_interno,LOCATE('-',codigo_interno,1)-1) FROM ...

Options: ReplyQuote


Subject
Views
Written By
Posted
6713
September 16, 2008 08:58AM
Re: Como pegar apenas parte de um valor
3838
October 07, 2008 10:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.