Jedním z obvyklých triků je použití kombinace length a replace :
select (length(your_col) - length(replace(your_col, ','))) from your_table;
replace bez třetího argumentu jednoduše odstraníte znak.
Jedním z obvyklých triků je použití kombinace length a replace :
select (length(your_col) - length(replace(your_col, ','))) from your_table;
replace bez třetího argumentu jednoduše odstraníte znak.