sybase数据库删除一列的语法是什么?

sunyo 2006-09-01 02:20:57
在SQL SERVER中可以用:
alter table info drop column bt

可是在SYBASE中却提示:
Server Message: Number 102, Severity 15
Line 1:
Incorrect syntax near 'bt'.

请问正确的语法是什么?
先谢谢了!
...全文
607 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
yxlpf 2006-09-26
  • 打赏
  • 举报
回复
sa登录连到master
delete from sysdatabases where name='xxxxx'
go
delete from sysusages where dbid not in (select dbid from sysdatabases)
go
DBCC CHECKALLOC
go
删除devices
delete from sysdevices where name='xxx'
go
DBCC CHECKALLOC
go

xxxx 皆为数据库名称
xxx 皆为设备名称,不是文件名
爱猫的鱼V 2006-09-04
  • 打赏
  • 举报
回复
ALTER TABLE employee
DELETE office

(即:alter table 表名 delete 字段名 )
gawz 2006-09-04
  • 打赏
  • 举报
回复
ALTER TABLE [ owner.]table-name
{ add-clause | modify-clause | drop-clause | rename-clause }
drop-clause :
{ DELETE | DROP }{
column-name
...
lw1a2 2006-09-02
  • 打赏
  • 举报
回复
alter table info drop bt
gawz 2006-09-02
  • 打赏
  • 举报
回复
try this:
alter table info delete column bt
hobbylu 2006-09-01
  • 打赏
  • 举报
回复
详细语法可以参考书册

2,598

社区成员

发帖
与我相关
我的任务
社区描述
Sybase相关技术讨论区
社区管理员
  • Sybase社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧