???????????????????
???????????? ???????[ 2012/11/26 10:13:04 ] ????????
?????????????????????????????????????????仯????
?????????????????????????????????????????????????????????????????????????????
??????????????????????????μ???????????????????
?????????SQL ????????д??????????????????
????1??LIKE ???????????????????????????????μ????????????????????
????????д??????????????á?
SELECT * FROM employee WHERE lname_pinyin LIKE '%w%';
SELECT * FROM employee WHERE lname_pinyin LIKE '%w';
????2????? IS NOT NULL??<> ???????????????????????£?
SELECT * FROM employee WHERE lname_pinyin IS NOT NULL;
SELECT * FROM employee WHERE lname_pinyin <> 'wang';
????3???????????????????????????£?????????????????£?
SELECT * FROM employee WHERE YEAR(birth) = '1980'; -- ?????????
SELECT * FROM employee WHERE birth >= '1980-01-01' AND birth <= '1980-12-31'; --?????????
????4???????????????У???а????? WHERE ????????У????£?
CREATE INDEX idx_pinyin ON employee(lname_pinyin?? fname_pinyin);
SELECT * FROM employee WHERE lname_pinyin = 'wang' AND fname_pinyin = 'xiao'; --????????
SELECT * FROM employee WHERE lname_pinyin = 'wang'; --????????
SELECT * FROM employee WHERE fname_pinyin = 'xiao'; -- ??????????
SELECT * FROM employee WHERE lname_pinyin = 'wang' OR fname_pinyin = 'xiao'; -- ??????????
???????????????У??????????? EXPLAIN ???????????????????????????????????
??????
???·???
??????????????????
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