INSERT INTO table_a (col_tinyint, col_varchar)
SELECT 0, distinct(col_other_varchar) COLLATE utf8_bin FROM table_b
I want to select distinctively and case sensively from table_b but this query creates errors. How can I solve this?
I get the error:
Error is SQL Syntax #1064
The
DISTINCTkeyword must come immediately afterSELECT.You should also be aware that it applies to the entire row and not to a single column, regardless of any parentheses you might choose to add.