Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 Sybase (> ASE 12.5) 中的视图上创建索引?
您不能在视图上创建索引,因为视图不是物理实体。它只是在调用视图时执行的视图定义(sql 查询)。
您可以在调用视图时可以访问的基表上创建索引
我试过并得到了这个错误:
create view zzz_xyz as select * from sample_table go create index xxxxx on zzz_xyz (sample_column) go