Link Details

Link 81972 thumbnail
User 283484 avatar

By jfranzone
via franzone.com
Submitted: May 20 2008 / 13:45

I know you’ve all asked that question before, right? Well maybe not, but I recently had the need to detect what the DATATYPE for arbitrary columns in arbitrary tables were inside a MySQL database using PHP. Turns out that it isn’t all that hard to get. The main thing about using this method is that we are simply sending SQL queries to MySQL which instruct it to give us the required information.
  • 1
  • 0
  • 118
  • 24

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (1)



Voters Against This Link (0)