![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In the database i have a table with this information: key_id => 1 key_desc => 43+34+22+12 I want sum the values in key_desc. Something like: SELECT key_desc FROM table But the result of the select was "111" and not "43+34+22+12". Is this posible? |
Let me know and
#3
| |||
| |||
|
|
In the database i have a table with this information: key_id => 1 key_desc => 43+34+22+12 I want sum the values in key_desc. Something like: SELECT key_desc FROM table But the result of the select was "111" and not "43+34+22+12". Is this posible? |
#4
| |||
| |||
|
|
On Jun 21, 12:44 pm,Apaxe<apaxe2000Milh... (AT) gmail (DOT) com> wrote: In the database i have a table with this information: key_id => 1 key_desc => 43+34+22+12 I want sum the values in key_desc. Something like: SELECT key_desc FROM table But the result of the select was "111" and not "43+34+22+12". Is this posible? Are you saying that the key_desc is a char() field with the value "43+34+22+12" in it? If that's the case then this IS possible, but the code is gonna make your head hurt a little bit Let me know andI'll be happy to work with you on it. Joshua |
#5
| |||
| |||
|
|
Yes, key_desc is a char() field. And i need to extract de sum of the string. In this case, the value "111". |
#6
| |||
| |||
|
|
In the database i have a table with this information: key_id => 1 key_desc => 43+34+22+12 I want sum the values in key_desc. Something like: SELECT key_desc FROM table But the result of the select was "111" and not "43+34+22+12". Is this posible? |
#7
| |||
| |||
|
|
In the database i have a table with this information: key_id => 1 key_desc => 43+34+22+12 I want sum the values in key_desc. Something like: SELECT key_desc FROM table But the result of the select was "111" and not "43+34+22+12". Is this posible? |
![]() |
| Thread Tools | |
| Display Modes | |
| |