Wolf95
11-17-2011, 02:39 AM
Hello, I am working on a web application and I was wondering if I have a table that consists of columns type and value, where both are varchars, and I was wondering if I could have a row with the data: sidinc, 0001
Then can I write that number fetched from the varchar column to another table where that value would be written to a numeric column and vice versa?
Another Question:
If I have a column named SIDS and all data is stored like this: "0001:0003:0009", how do I remove lets say 0003 automatically so that it will convert to:
"0001:0009", I'm guessing It will involve explode and implode, but I do not know how to do this, also is there a way I can perform a similar function but instead of removing, adding to it?
Then can I write that number fetched from the varchar column to another table where that value would be written to a numeric column and vice versa?
Another Question:
If I have a column named SIDS and all data is stored like this: "0001:0003:0009", how do I remove lets say 0003 automatically so that it will convert to:
"0001:0009", I'm guessing It will involve explode and implode, but I do not know how to do this, also is there a way I can perform a similar function but instead of removing, adding to it?