SQL语句常用用法记录
一、基本的用法
select count(distinct *) from member_info where uid is null ;
select count(*) from users where locate('|',uuid) > 0.
# LOCATE(substring, string) 函数用于返回 substring 在 string 中首次出现的位置。如果 substring 不存在于 string 中,则返回 0
select count(distinct *) from member_info where uid is null ;
select count(*) from users where locate('|',uuid) > 0.
# LOCATE(substring, string) 函数用于返回 substring 在 string 中首次出现的位置。如果 substring 不存在于 string 中,则返回 0