MySQL Forums
Forum List  »  Newbie

Convert function help
Posted by: Jim Palmer
Date: May 09, 2015 10:07AM

Trying to convert a value from a table to an integer using following script:

select convert(substring_index(tracknumber,' ',1),integer) AS trackSeq from imac27_20150508;

the above is generating the following error using mysql 5.5.42 in TOAD 7.3

MySQL Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'integer) AS trackSeq from imac27_20150508' at line 1

Help appreciated

Jim P.

Options: ReplyQuote


Subject
Written By
Posted
Convert function help
May 09, 2015 10:07AM


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.