ORA-00923: FROM keyword not found where expected
今天偶然查詢Oracle隱含引數,想在從網上找到大神寫的語句中加一個描述引數作用的列,發生ORA-00923,做個記錄
SYS@honor1 > select 2 x.ksppinm name, 3 y.ksppstvl value, 4 y.ksppstdf isdefault, 5 x.ksppdesc desc, 6 decode(bitand(y.ksppstvf,7),1,'MODIFIED',4,'SYSTEM_MOD','FALSE') ismod, 7 decode(bitand(y.ksppstvf,2),2,'TRUE','FALSE') isadj 8 from 9 sys.x$ksppi x, 10 sys.x$ksppcv y 11 where 12 x.inst_id = userenv('Instance') and 13 y.inst_id = userenv('Instance') and 14 x.indx = y.indx and x.ksppinm like '%¶meter%' 15 order by 16 translate(x.ksppinm, ' _', ' ') 17 / Enter value for parameter: policy old 14: x.indx = y.indx and x.ksppinm like '%¶meter%' new 14: x.indx = y.indx and x.ksppinm like '%policy%' x.ksppdesc desc, * ERROR at line 5: ORA-00923: FROM keyword not found where expected
經過仔細比對,該問題由於第五行,使用了系統保留關鍵字desc導致,改為describe,問題解決。
另外,對上述查詢中ISMOD、ISADJ經過研究含義如下:
ISMODIFIED VARCHAR2(10) Indicates whether the parameter has been modified after instance startup: • MODIFIED - Parameter has been modified with ALTER SESSION • SYSTEM_MOD - Parameter has been modified with ALTER SYSTEM (which causes all the currently logged in sessions' values to be modified) • FALSE - Parameter has not been modified after instance startup ISADJUSTED VARCHAR2(5) Indicates whether Oracle adjusted the input value to a more suitable value (for example, the parameter value should be prime, but the user input a non-prime number, so Oracle adjusted the value to the next prime number)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31439444/viewspace-2672931/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- where to start, from where the end
- Expected indentation of 14 spaces but found 16
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- Android:Unexpected lock protocol found in lock file. Expected 3, found 0.AndroidProtocol
- 每日充電:踩坑expected ‘package‘, found ‘import‘PackageImport
- java.sql.SQLException: ORA-00923: 未找到要求的 FROM 關鍵字JavaSQLException
- PyTorch出現錯誤“RuntimeError: Found dtype Double but expected Float”PyTorchError
- Go 執行 程式 test.go:1:1: expected ‘package‘, found ‘EOF‘GoPackage
- mysql 的delete from where 子查詢的一些限制MySqldelete
- SyntaxError: Unexpected keyword 'const'?Error
- Unable to download data from https://gems.ruby-china.org/ - bad response Not Found 404HTTP
- 佔用資源狂高的select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags, 1024) = 1024APP
- E. Expected Power
- A Tomcat 8.0 installation is expectedTomcat
- 阿里面試題: (a,b,c)組合索引, 查詢語句select...from...where a=.. and c=..走索引嗎?阿里面試題索引
- 細說 PEP 468: Preserving Keyword Argument Order
- Error-Expected resource of typeError
- Python IndentationError: expected an indented blockPythonErrorBloC
- having和where
- MyDAL – .Where() & .And() & .Or() 使用
- Vue : Expected the Promise rejection reason to be an ErrorVuePromiseError
- HTTPSConnection.__init__() got an unexpected keyword argument check_hostnameHTTPGo
- Elasticsearch 結構化搜尋、keyword、Term查詢Elasticsearch
- MyBatis中的<where>標籤和where子句的區別MyBatis
- pytorch 踩坑,TypeError: expected seqence object with len>_0 or a single integer_typeerror: expected sequence object with len __ 0PyTorchErrorObject
- 好用的expected_conditions模組
- MySQL where 運算子MySql
- -bash: id: command not found -bash: tty: command not found
- kubeadm not found
- BDD 和 keyword Driven 在需求方完全不寫也不看指令碼,也不用 GWT/keyword 形式定義需求時比 xunit 好在哪?指令碼
- switch拼接where條件
- Laravel 的 where or 查詢Laravel
- numpy.where()函式函式
- Yii2 where使用
- MySQL-where 1=1MySql
- SQLite中的WHERE子句SQLite
- From now on
- Tensorflow Keras load_model報錯got an unexpected keyword argument ‘ragged‘KerasGo