标签: sql sqlite
我试图获取并计算gmail域名的帐户数量。我不确定该怎么做。任何帮助都会很棒。
答案 0 :(得分:2)
SELECT COUNT(*) as numGmailAccounts FROM tableName WHERE emailColumn like '%gmail.com'
答案 1 :(得分:1)
select sum(instr(some_column, '@gmail.com') > 0) as gmail_count from your_table