ORA-00922: 选项缺失或无效
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
相关学习推荐
根据本文内容,精选以下优质课程:
- MySQL实战45讲
林晓斌(丁奇) | MySQL性能优化核心技术,深入讲解索引原理 - SQL必知必会
陈旸 | 快速掌握SQL核心技能 - Redis核心技术与实战
蒋德钧 | 这样学Redis,才能技高一筹
开发资源
浙公网安备 33010602011771号