alter table abc add column c varchar(10);

ebeyondboy 2009-09-18 10:26:55
为什么有column就错误,
alter table abc add c varchar(10);就是对的
...全文
190 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
cosio 2009-09-18
  • 打赏
  • 举报
回复
[Quote=引用楼主 ebeyondboy 的回复:]
为什么有column就错误,
alter table abc add c varchar(10);就是对的
[/Quote]

add不用加column
如果是drop 就要用到!
alter table abc drop column c
inthirties 2009-09-18
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 amiksong 的回复:]
引用 2 楼 inthirties 的回复:
语法要求,如此

建立可以看看这个贴子
“很全的help.sql Oracle的sqlplus环境下的帮助系统”



您无权进行当前操作,这可能因以下原因之一造成

本版块只有特定用户组可以访问。

您已经登录,但您的帐号或其所在的用户组无权访问当前页面。


看不到的说...
[/Quote]

已經可以了。
ebeyondboy 2009-09-18
  • 打赏
  • 举报
回复
谢谢大家,谢谢
FuYongHao 2009-09-18
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 cosio 的回复:]
引用楼主 ebeyondboy 的回复:
为什么有column就错误,
alter table abc add c varchar(10);就是对的


add不用加column
如果是drop 就要用到!
alter table abc drop column c
[/Quote]


UP
amiksong 2009-09-18
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 inthirties 的回复:]
语法要求,如此

建立可以看看这个贴子
“很全的help.sql Oracle的sqlplus环境下的帮助系统”

[/Quote]

您无权进行当前操作,这可能因以下原因之一造成

本版块只有特定用户组可以访问。

您已经登录,但您的帐号或其所在的用户组无权访问当前页面。


看不到的说...
inthirties 2009-09-18
  • 打赏
  • 举报
回复
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> help alter user;

ALTER USER
----------

Use this command to change any of the following characteristics of a
database user:

* authentication mechanism of the user
* password
* default tablespace for object creation
* tablespace for temporary segments created for the user
* tablespace access and tablespace quotas
* limits on database resources
* default roles

ALTER USER user
{ IDENTIFIED {BY password | EXTERNALLY
| GLOBALLY AS 'CN=user'}
| DEFAULT TABLESPACE tablespace
| TEMPORARY TABLESPACE tablespace
| QUOTA { integer [K | M] | UNLIMITED} ON tablespace
[ QUOTA { integer [K | M] | UNLIMITED} ON tablespace] ...
| PROFILE profile
| PASSWORD EXPIRE
| ACCOUNT { LOCK | UNLOCK }
| DEFAULT ROLE { role [, role] ...
| ALL [EXCEPT role [, role] ...]
| NONE} } ...

For detailed information on this command, see the Oracle8 Server SQL
Reference.

inthirties 2009-09-18
  • 打赏
  • 举报
回复
语法要求,如此

建立可以看看这个贴子
很全的help.sql Oracle的sqlplus环境下的帮助系统

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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