mysql數據庫sql優化——子查詢優化

一、什麼是子查詢、表關聯查詢: 子查詢:是指在主sql語句中的select或where子句中使用select查詢語句;select a.name,(select b.name from b where b.id=a.id) from a where a.name lik 'a%' 表關聯查詢:指多個表聯合查詢;select a.name,b.name from a,b where a.id=b.i
相關文章
相關標籤/搜索