943,147 Members | Top Members by Rank

Ad:
  • MySQL Discussion Thread
  • Unsolved
  • Views: 5098
  • MySQL RSS
Mar 8th, 2010
0

MySQL 4.1 - Howto convert/cast INT to CHAR/VARCHAR?

Expand Post »
Hi,

I'm hoping someone out there has the answer to this question:

How does one convert a table column's data type from INT to CHAR/VARCHAR?

Background: I'm trialing some ID card software and it uses Access as its backend. It has ODBC capability and I'm able to connect to my website's MySQL db alright and even import a number of columns in my table (DATE, other VARCHAR columns). However, whenever I try to import the column that's INT (a two or three digit number), I get a type mismatch (on the ID card end I've chosen every predefined option they offer to no avail) and can't get any further.

If I can cast/convert the INT to VARCHAR I think I can get around the ID card software's limited functionality.

Can anyone help?

Thanks kindly,

-creativedynamo
Reputation Points: 10
Solved Threads: 0
Newbie Poster
creativedynamo is offline Offline
1 posts
since Mar 2010
Dec 16th, 2010
0
Re: MySQL 4.1 - Howto convert/cast INT to CHAR/VARCHAR?
did you ever get a response to your question?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fmartin is offline Offline
1 posts
since Dec 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MySQL Forum Timeline: Search - Strange results using LIKE or MATCH () AGAINST ()
Next Thread in MySQL Forum Timeline: help setting up mysql tables/columns





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC