sql列別名引發ORA-00923: FROM keyword not found where expected
SQL> create table t_a(a int);
Table created
SQL> select a as 成功/失敗 from t_a;--因別名包含/引發錯誤
select a as 成功/失敗 from t_a
ORA-00923: FROM keyword not found where expected
SQL> select a as '成功/失敗' from t_a;--對別名新增單引號失敗
select a as '成功/失敗' from t_a
ORA-00923: FROM keyword not found where expected
SQL> select a as "成功/失敗" from t_a;--新增雙引號即可
成功/失敗
---------------------------------------
小結:1,最好在列別名不用要漢字,相容太差
2,不要在列別名中使用特殊字元如:/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-754969/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- golang expected declaration, found 'IDENT'GolangIDE
- java.sql.SQLException: ORA-00923: 未找到要求的 FROM 關鍵字JavaSQLException
- sql_union all_列別名SQL
- SQL中where和on的區別SQL
- SQL join中on與where區別SQL
- 每日充電:踩坑expected ‘package‘, found ‘import‘PackageImport
- 開發:異常收集之 expected single matching bean but found 2Bean
- 【SQL】Oracle SQL join on語句and和where使用區別SQLOracle
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- Android:Unexpected lock protocol found in lock file. Expected 3, found 0.AndroidProtocol
- SQL JOIN 中 on 與 where 有何區別SQL
- SQL中Having與Where的區別SQL
- SQL 中having 和where的區別SQL
- SQL Server 別名(as)SQLServer
- sql中別名as,不寫,以及使用雙引號總結SQL
- WebService異常Unexpected wrapper element ... found. Expected ...WebAPP
- SQL WHERE IN引數化編譯寫法簡單示例SQL編譯
- [pl sql] where current ofSQL
- SQL優化] 避免在WHERE子句中對列使用函式SQL優化函式
- ORACLE SQL開發where子句之case-whenOracleSQL
- SQL%FOUND,SQL%NOTFOUND,SQL%ROWCOUNTSQL
- PyTorch出現錯誤“RuntimeError: Found dtype Double but expected Float”PyTorchError
- Go 執行 程式 test.go:1:1: expected ‘package‘, found ‘EOF‘GoPackage
- SQL中 where 子句和having子句中的區別SQL
- SQL中on條件與where條件的區別[轉]SQL
- SQL Where in list 問題SQL
- CDH5之Found class jline.Terminal, but interface was expectedH5
- SQL語句中 left join 後用 on 還是 where,區別大SQL
- 問題No property 屬性名 found for type 類名
- SpringBoot 引數別名實現Spring Boot
- MyBatis中的<where>標籤和where子句的區別MyBatis
- SQL 優先順序join>whereSQL
- expected '', but found BlockMappingStart in 'reader', line 13, column 1:nimbus.host:BloCAPP
- mysql 的delete from where 子查詢的一些限制MySqldelete
- SpringMVC @Transactional的陷井大坑引發No Session found for current threadSpringMVCSessionthread
- Python 的 Keyword-Only Arguments (強制關鍵字引數)Python
- 名稱 ****不是有效的識別符號 sql符號SQL
- sql小筆記(增刪改查——新增列、修改表名、列的欄位型別等)SQL筆記型別