I mysql du kan göra: SELECT ID, CAST(YourLongText as char(255)) AS YourVarchar FROM some_table Menade du så