The method I suggested lends itself well to that format, the database is going to see it as one number, but your app is going to see it as 2 numbers one for feet and one for inches. Then it is up to you to display it as X'XX" . Just insert those characters. I think it would look like this with the above conversions:
QUESTION: Why does the INSERT method work whereas the cfinsert datasource does not? In the cfinsert case, I end up inserting nothing into the database. I actually wanted to just use the line <cinfsert datasource="measure" tablename="height"> to make things simple but it kept telling me that I should have a heightfeet and heightinches in my DB, which I didn't; I wanted to only have dheight...so I thought by using the formfields="dheight" I could keep things syntactically correct...
formfields should work, but as far as correct programming it is a good idea to use regular SQL. It will be easier to work on later and it will be more portable. If Insert works go with Insert. my 2 cents.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.