sybase,在对表结构进行修改的时候出现一个错误:
sql:
alter table testTable add fieldName int
error:
the 'select into'database option is not enabled for database XXX。。。
解决方法:
sp_dboption存储过程用于显示或更改数据库选项
[table]
|select into/bulkcopy | 当为 true 时,允许使用 SELECT INTO 语句和快速大容量复制。|
[/table]
sql:
alter table testTable add fieldName int
error:
the 'select into'database option is not enabled for database XXX。。。
解决方法:
use master
go
sp_dboption 'your dbName','select into/bulkcopy/pllsort',true
go sp_dboption存储过程用于显示或更改数据库选项
[table]
|select into/bulkcopy | 当为 true 时,允许使用 SELECT INTO 语句和快速大容量复制。|
[/table]
本文介绍了解决Sybase数据库中因SELECT INTO选项未启用而导致的ALTER TABLE操作失败的问题。通过使用gosp_dboption存储过程来开启该选项,确保能够顺利执行表结构的修改。
526

被折叠的 条评论
为什么被折叠?



