1、错误描述
SQL> create table info_stu from select t.stu_id,t.stu_name,t.stu_age from info t;
create table info_stu from select t.stu_id,t.stu_name,t.stu_age from info t
ORA-00922: 选项缺失或无效
2、错误原因
由于用数据库表中某些字段创建一张新表,中间的连接是用AS,而不是用from
3、解决办法
SQL> create table info_stu as select t.stu_id,t.stu_name,t.stu_age from info t;
Table created
本文详细解析了SQL语句在创建表时遇到的ORA-00922错误,原因在于使用了AS而非from进行连接操作。通过提供解决办法,即修改SQL语句为使用AS后的正确形式,成功解决了问题并创建了新表。
3369

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



