|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
hello,
is there any way to specify indexes in the create table query during the creation of the table or do i have to run a separate query to specify index like create index??? |
|
#2
|
|||
|
|||
|
Quote:
If you specify a primary (or unique) key, then PG will automatically create a unique index to enforce that key. Otherwise you'll need to create the index with a separate statement. See: http://www.postgresql.org/docs/current/static/sql-createtable.html |
![]() |
| Viewing: Dev Shed Forums > Databases > PostgreSQL Help > Specifying index in create table??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|