1.select * from cat;
2.alter table tbname add colname coltype;
3.???
2.alter table tbname add colname coltype;
3.???
解决方案 »
- 我是菜鸟,不要笑话我啊。pls-00201 是编译错误还是运行时错误
- ORA-02019: 未找到远程数据库的连接说明 急!!!
- 救命 OracleOraHome92TNSListener启动不了
- 求救:关于ref cursor 参数,在线等待...............................
- 关于row_number()的一点问题?
- oraclE中读取clob时出错大家帮忙
- 急.ORACLE存储过程的问题!!!!
- 如何在linux下自动启动Oracle9i???急急急急急!!在线给分!!!!
- sqlplus登录时的数据库名是SYSTEM,但用plsql登录时却是默认数据库名SQL
- Oracle通过DB_link连接sqlserver创建物化视图自动刷新
- 创建外键的问题
- 急...我的oracle 8.0.5 起动不了
2、修改alter table tablename modify(colname1 coltype1,colname2 coltype2);
插入alter table tablename add(colname1 coltype1,colname2 coltype2);3、放到哪里都可以,只要你get时能找到,默认为安装目录下的bin文件夹下
2. 插入alter table tablename add(colname1 coltype1,colname2 coltype2);其中 colname2 coltype2是????
2.colname2 --列名
coltype2 --数据类型
create user temp identified by temp default tablespace sp01;
grant connect,resource to temp;
connect temp/temp
create table ...
...
select * from cat;
修改alter table tablename modify(colname1 coltype1,colname2 coltype2);只能修改数据类型,如果我想修改列名怎么办?
3. 查找就可以啦~
运行脚本的话,就是 @+文件名.
SQL>@C:\RunSql.sql;
alter table t_name rename column column_a to column_b ;
//大概是这样吧,不好意思,没有9i没法试