خرید بک لینک

Vote count: 0

Given a CHAR or VARCHAR column in MySql, what I need is to convert it to a number so it can be summed up. For example, if the column name is CHAR1, the SELECT would be:

SELECT SUM(ConvertToNumber(CHAR1)) from TABLE1

The function ConvertToNumber just needs to convert to a number, it doesn't matter which number as long as it always converts to the same.

Is this feasible with native or user defined functions?

asked 33 secs ago

- - , .
.

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 24 تير 1395 ساعت: 21:58

صفحه بندی