SQL?????????????
???????????? ???????[ 2016/11/28 15:39:07 ] ????????????? MySQL
????С??????????Щ????У????????????????????????????????????????????????????о??Щ????????????sql
????1????????????????????????ж????漰???Щ???? ????????????????
????SELECT COUNT(sign_id) FROM table WHERE DATE_FORMAT(sign_at?? ‘%Y-%m-%d’) = DATE_FORMAT(DATE(NOW())?? ‘%Y-%m-%d’) AND id =XX;
????????sql??????????????Щ?????;
????SELECT COUNT(id) FROM contacts_view WHERE created_at >= ( CURDATE() – INTERVAL 15 DAY )
????????sql????????????15????Щ?????;??????? 3?? 5?? 9??;
???????????
????2??SELECT * FROM ?? WHERE datediff(month??[dateadd]??getdate())=0
??????????μ??????;
????3?????????????????????????????????????棬???????????????????????????????????????????.
????SELECT user_id?? ( 6731 * acos( cos( radians($lat) ) * cos( radians( lat ) ) * cos( radians( lng ) – radians($lng) ) + sin( radians($lat) ) * sin( radians( lat ) ) ) ) AS distance FROM user WHERE user_id != ? AND status = 1 AND lng IS NOT NULL AND lat IS NOT NULL ORDER BY distance
????????????????????????????????????????????????????е??γ??.???????;
????4???????????php?? js???ж??????????????????.?????????????????????????????????????????????????sql??????????????????????????Ч????.sql????е????????????”REGEXP “?? ?????????sql?е?like.
???????磺
????SELECT name FROM user WHERE name REGEXP ‘galen’;
???????????????????
????????galen???????????????????like??????????????С????????????????????sql????????????Щ?????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11