简体   繁体   English

在PostgreSQL 8.1中创建表时出现语法错误

[英]Syntax error while creating table in PostgreSQL 8.1

I have a syntax error in this query: 我在此查询中有语法错误:

CREATE TABLE test (LIKE original_table INCLUDING INDEXES);

ERROR : syntax error at or near "INDEXES" 错误:“ INDEXES”处或附近的语法错误

I am using PostgreSQL 8.1 version. 我正在使用PostgreSQL 8.1版本。 Where is the issue in my query? 我的查询中的问题在哪里?

PostgreSQL 8.1 only supports INCLUDING DEFAULTS . PostgreSQL 8.1仅支持INCLUDING DEFAULTS

You'll either have to upgrade to at least 8.3 or create the indices manually. 您要么必须升级到至少8.3,要么手动创建索引。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM