文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Indexes to Tables

Indexes to Tables

时间:2010-01-23  来源:admin126com

Indexes to Tables

* You can explicitly create indexes for table columns in PostgreSQL. Those indexes will speed up operations that look-up or sort according to values in those fields.

* The "CREATE INDEX" command is used for this purpose.

* Example:

Create an index according to the last name:

test=> CREATE INDEX employees_last_name_index
test->        ON employees
test->        ( last_name ) \g
CREATE


Create an index on both the first name and last name:

test=> CREATE INDEX employees_first_and_last_name_index
test->        ON employees
test->        ( last_name, first_name ) \g
CREATE


* To remove an index use the "DROP INDEX" command.

* Note: There is no "CREATE INDEX" command in the SQL 92 standard.

相关阅读 更多 +
排行榜 更多 +
跳舞的线无尽版游戏下载

跳舞的线无尽版游戏下载

休闲益智 下载
西电睿思手机版app下载

西电睿思手机版app下载

生活实用 下载
Polkadot币最具跨链互通的交易所币安下载

Polkadot币最具跨链互通的交易所币安下载

金融理财 下载