Solved

trim string to everything after:

Posted on 2013-12-02
1
253 Views
Last Modified: 2013-12-03
I need to trim this string to everything after the :
the string is:

_KW_COST_247:.07

What I want left is .07 and then to convert it to a double.
0
Comment
Question by:portlight
1 Comment
 
LVL 35

Accepted Solution

by:
Terry Woods earned 500 total points
ID: 39691530
You can get the value .07 like this:
select substr(my_column, instr(my_column , ':' ) +1)
from my_table

Open in new window

(tested and working)
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
join tables 4 57
two ways encryption with php 3 44
Complex MySQL Query 2 38
How to fix Datetime in MySQL? 4 64
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question