MySQL varchar column on group_concat shows as text in View

Viewed 1453

I have column in base table as acct_num varchar(25) and I am creating a View and GROUP_CONCAT() is set to this column. This is shown as text datatype in show create view. Is it possible to have VARCHAR(25) datatype for GROUP_CONCAT(acct_num) column. Please advise.

What I learnt from MySQL reference:

  • I though to cast as varchar(25) but CAST can be applied as CHAR not as VARCHAR
  • There is option to set GLOBAL_SET_GROUP_CONCAT_VALUE = 512 so that you can get output of GROUP_CONCAT() as varchar() - but it didn't work out for me.
1 Answers
Related