You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//index key (name)
SELECT * FROM demo
WHERE name > "a" AND name like "%b"
请简述如下几种子查询的执行流程
SELECT * FROM s1
WHERE key1 = (SELECT common_field FROM s2 WHERE key3 = 'a' LIMIT 1);
SELECT * FROM s1 WHERE
key1 = (SELECT common_field FROM s2 WHERE s1.key3 = s2.key3 LIMIT 1);
SELECT * FROM s1
WHERE key1 IN (SELECT common_field FROM s2 WHERE key3 = 'a');
SELECT * FROM s1
WHERE key1 IN (SELECT common_field FROM s2 WHERE s1.key3 = s2.key3);
请简述如下几种排序的执行流程
//index key (uid)
SELECT * FROM demo
ORDER BY uid
SELECT * FROM demo
ORDER BY uid LIMIT 10
请问如下sql mysql执行时候会排序么
//index key (city,name)
SELECT * FROM demo
WHERE city IN("杭州"、"苏州") ORDER BY name LIMIT 100