Restrict the character length to a fixed number in SQL I have a data table called ‘batch’ which has been created as follows;