[20230508]ORA-00907 missing right parenthesis.txt
[20230508]ORA-00907 missing right parenthesis.txt
--//連結 logic.edchen.org/how-to-resolve-ora-00907-missing-right-parenthesis/,重複測試:
1.環境:
SCOTT@book> @ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
2.測試:
SCOTT@book> create table fruits (fruit_name varchar2(20), price number not null default 20);
create table fruits (fruit_name varchar2(20), price number not null default 20)
*
ERROR at line 1:
ORA-00907: missing right parenthesis
--//不能不講,給出的錯誤提示非常讓人迷惑,作者給出的解析:
Please note that, the right parenthesis is also known as right round bracket. In CREATE TABLE statement, what
parenthesis encloses is the column list.
In this case, DEFAULT is a valid reserved keyword, but it should be appeared before NOT NULL, not after. So we should
rearrange the order of clauses in the statement to correct the problem.
--//修改為default在前面:
SCOTT@book> create table fruits (fruit_name varchar2(20), price number default 20 not null);
Table created.
--//SCOTT@book> drop table fruits purge;
--//Table dropped.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2950565/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20230508]crack oracle執行檔案.txtOracle
- 【譯】 Types are moving to the right
- Missing Subsequence Sum
- Pandas fillna('Missing')
- [20230508]能否一行完成(使用tee小技巧).txt
- find: missing argument to `-exec'
- Missing MSI and MSP files
- your Android sdk is missingAndroid
- missing ) after argument list
- border-right製作的
- B. Missing Subsequence Sum
- OPatch install "Missing command :fuser"
- 【Leetcode】163. Missing RangesLeetCode
- Leetcode 41 First Missing PositiveLeetCode
- gerrit "missing Change-Id"
- MySQL LEFT JOIN/ INNER JOIN/RIGHT JOINMySql
- 199-Binary Tree Right Side ViewIDEView
- GAMES001&mit missing semesterGAMMIT
- [LeetCode] 2028. Find Missing ObservationsLeetCode
- shell指令碼報錯:[: missing `]‘指令碼
- 116-Populating Next Right Pointers in Each Node
- Dynamic Web Project option missing in Eclipse KeplerWebProjectEclipse
- WPF live visual tree Right click,show properties,DataContextContext
- 117. Populating Next Right Pointers in Each Node II
- CSS @page:right列印偽類選擇器CSS
- 117-Populating Next Right Pointers in Each Node II
- Sql 中的 left 函式、right 函式SQL函式
- [ARC186E] Missing Subsequence 題解
- Laravel 8 路由模組新增 missing 方法Laravel路由
- keil error:#8:missing closing quote 處理Error
- [LeetCode] 2516. Take K of Each Character From Left and RightLeetCode
- mysql常用連線查詢join,left,right,crossMySqlROS
- Leetcode 117. Populating Next Right Pointers in Each Node IILeetCode
- The connection to the server 10.10.0.2:6443 was refused - did you specify the right host or port?Server
- Java報錯:Missing ServletWebServerFactory bean,如何解決JavaServletWebServerBean
- join、inner join、left join、right join、outer join的區別
- 關於margin-right使用不了的問題
- LOGSTDBY status: ORA-16227: DDL skipped due to missing objectObject