14,494 questions
Hi @15431565
Try this query.
create table test(col varchar(100));
insert into test values
('jA kk qa'),
('N lta'),
('KK Dt'),
('U PF GH'),
('V bag ha'),
('jkj sa cc as sk');
select *,len(col) - len(replace(col,' ','')) as spacenums from test;
Output:
Best regards,
Percy Tang