In mysql je kunt doen: SELECT ID, CAST(YourLongText as char(255)) AS YourVarchar FROM some_table Bedoelde je zo