数据库总结(一)

1数据库是如何建立索引的:create index 建立表:create table 2.数据库如何实现倒叙/升序排序:order by asc(升序)/desc(倒叙) 3.数据库的优化方案: ①尽可能避免全表扫描 ②尽可能避免在where子句中对字段进行null值判断 ③尽可能不要给数据库留null,尽可能使用not null填充数据库 ④避免在 where 子句中使用 != 或 <> 操做符
相关文章
相关标签/搜索