數據庫總結(一)

1數據庫是如何建立索引的:create index 建立表:create table 2.數據庫如何實現倒敘/升序排序:order by asc(升序)/desc(倒敘) 3.數據庫的優化方案: ①儘可能避免全表掃描 ②儘可能避免在where子句中對字段進行null值判斷 ③儘可能不要給數據庫留null,儘可能使用not null填充數據庫 ④避免在 where 子句中使用 != 或 <> 操做符
相關文章
相關標籤/搜索