Example: I want sql to output only rows that have 6 digit of character 'AAAAAA' I don't want rows that have more than that.
"SELECT * FROM table WHERE LENGTH(columnName) = 6" If MySql and "SELECT * FROM table WHERE LEN(columnName) = 6" If MSSql