SQL语句常用用法记录

一、基本的用法

select count(distinct *) from member_info where uid is null ;

select count(*) from users  where  locate('|',uuid) > 0.   

LOCATE(substring, string) 函数用于返回 substringstring 中首次出现的位置。如果 substring 不存在于 string 中,则返回 0

posted @ 2025-02-20 15:00  尘恍若梦  阅读(15)  评论(0)    收藏  举报