Xaprb

Stay curious!

Archive for the ‘TYPEOF()’ tag

How to emulate the TYPEOF() function in MySQL

with 5 comments

Want to know the type of an arbitrary expression in MySQL? Someday in the far far future in version 7.1, you might be able to with the TYPEOF() function.

For now you can try this:

Read the rest of this entry »

Written by Baron Schwartz

August 13th, 2008 at 10:03 am

Posted in Uncategorized

Tagged with , ,