-2
In a Mysql database, I have two varchar columns that bring me records in this format:
["165","184","192","209","242"]
One more example:
Each number in double quotes is a record, IE, is the ID of some student.
I need a select that brings me how many Ids there are per column.
In the case of the column curso1
, the result would be 8
.
It is possible to carry out this type of consultation?
takes a balcony in that question, I believe it’s a similar problem
– rLinhares
Well I see a problem here, one you’re not doing storage more efficiently, so I figured you’d need an N:N ratio table that would make your life easier to get data.
– Marcos Brinner
What version of Mysql vc is using?
– Alvaro Alves
@Alvaroalves, Server Version: 10.1.26-Mariadb
– FenixS2