-
用merge into 的时候提示 ORA-01733: virtual column not allowed here
2017-10-20 17:07:41Error: PL/SQL: ORA-01733: virtual column not allowed here Line: 81 Text: MERGE INTO SvcOrderProfit Error: PL/SQL: SQL Statement ignored Line: 81 Text: MERGE INTO SvcOrderProfit 用merge ...Error: PL/SQL: ORA-01733: virtual column not allowed here
Line: 81
Text: MERGE INTO SvcOrderProfit
Error: PL/SQL: SQL Statement ignored
Line: 81Text: MERGE INTO SvcOrderProfit
用merge into 的时候提示
REF :http://www.cnblogs.com/dongsheng/p/4384754.html
问题代码:
WHEN MATCHED THEN
UPDATE
SET IncomeRMB = pos_2,
CostRMB = pos_3;/*,
v_dIncomeUSDFee = pos_4,
v_dIncomeUSDAccount = pos_5,
v_dlCostUSDFee = pos_6,
v_dlCostUSDAccount = pos_7,
v_dIncomeRMBSales = pos_8,
v_dCostRMBSales = pos_9,ROOT CAUSE 本来左边应该是表名,从SQL 转过来的时候却弄成了变量。所以报错
:
solution :
表字段的保留, 非表字段的SELECT INTO 到变量里面:
SELECT NVL((SELECT SUM(SvcOrderFee.NoTaxFeeAmount)
FROM SvcOrderFee
WHERE SvcOrderFee.CurrencyType = 0
AND SvcOrderFee.CreditDebitType = 0
AND (SvcOrderFee.AccountType = 2 OR
SvcOrderFee.AccountType = 3)
AND SvcOrderFee.OrderBillID = v_lOrderBillID),
0)INTO v_dCostRMBSales
FROM DUAL; -
ORA-01733: virtual column not allowed here
2015-03-17 16:43:35ORA-01733: virtual column not allowed here 更新视图1: SQL> update scott.tt set A=2; update scott.tt set A=2 * ERROR at line 1: ORA-01732: data manipulation operation not legal ...基表: hr.tt scott.tt
视图1: 基于 hr.tt union all scott.tt ---》 scott.ttt
视图2: 基于 视图1-》scott.ttt 创建 system.tt
问题再现:
SQL> create table hr.tt (a number);
Table created.
SQL> create table lixora.tt (a number);
Table created.
SQL> create view scott.tt as select * from hr.tt union all select * from lixora.tt;
View created.
SQL> create view system.tt as select * from scott.tt;
View created.
SQL> select * from system.tt
A
----------
1
更新视图2:
SQL> update system.tt set a=2;
update system.tt set a=2
*
ERROR at line 1:
ORA-01733: virtual column not allowed here
更新视图1:
SQL> update scott.tt set A=2;
update scott.tt set A=2
*
ERROR at line 1:
ORA-01732: data manipulation operation not legal on this view
SQL> !oerr ora 1732ORA-01733: virtual column not allowed here
Cause: An attempt was made to use an INSERT, UPDATE, or DELETE statement on an expression in a view.
Action: INSERT, UPDATE, or DELETE data in the base tables, instead of the view.总结:
无法对包含表达式的view 进行dml 操作
-
MySQL - Virtual Column not handled in INSERT, UPDATE
2021-01-03 04:05:05is not allowed" It happens because the MySQL connector tries to set a value in a column that is virtually generated (alias read-only). Please add a property attribute such as "ReadOnly" ... -
Use of a Timestamp column with a value greater than 23:00:00 is not allowed by PMA 4.6.4
2021-01-12 16:56:48<div><h3>Steps to ... 48:00:00 which was allowed in previous PMA versions) via the form field edit box now the JavaScript validator fails my 2 day time entry, when inserting into the column <code>... -
#3105 - The value specified for generated column 'name' in table '_person' is not allowed.
2020-11-23 05:08:21<div><p>table with virtual field not should be in data backup</p><p>该提问来源于开源项目:ifsnop/mysqldump-php</p></div> -
[POC][WIP] Make use of platform column to further increase the speed of #allowed_templates
2020-11-26 15:28:38<p>By adding a few key <code>virtual_attributes, we are able to process over 100k records for <code>MiqProvisionVirtWorkflow#allowed_templates</code> in under 5 seconds, and use very limited memory.... -
Ignore virtual columns
2021-01-09 09:17:50is not allowed.") </null></null></null></code></pre> <p>To insert data in such a table you have to omit these virtual columns: <pre><code>sql mysql root:test> INSERT INTO t(a... -
Feedback - Open Benchmark Directory (user testdatafiles/proposals allowed)
2020-12-09 09:53:51Taisto Kasurinen is a Finnish coal miner whose father has just committed suicide and who is framed for a crime he did not commit. In jail, he starts to dream about leaving the country and starting a ... -
Do we need "virtual" ("phantom") columns, i.e., columns with their own and separate 'aboutUrl' value...
2020-12-31 06:12:49<p>The question is whether it is allowed to define <code>aboutUrl</code> for an individual column, i.e., create a separate url for a specific cell in a role ("phantom" columns). If it is ... -
Improved handling of calculated values
2021-01-10 20:15:27, which always baffled me).</li><li>Use a virtual field so that the values are updated - Failed: No further use is then allowed, GroupStats does not recognise virtual fields, databases do not ... -
变量不能在insert的时候作为被插入表的字段名
2016-12-30 06:10:14我想用存储过程实现将test1表中的数据一条一条地插入test2中,有点像列转行,但是原问题比这个复杂的多,**但是好像变量值不能作为insert into test2的字段名**,这个位置提示'virtual column not allowed here' ,... -
update sequel
2020-12-26 02:08:23While symbol splitting allowed for shorter code, it was not obvious and caused significant issues when using column names with embedded double or triple underscores. [...] </p><pre># To get back ... -
BigQuery to_dataframe() ArrowNotImplementedError
2020-12-09 13:13:48General, Core, and Other are also allowed as types</li><li>OS type and version: <strong>GCP AI Notebook</strong> Python framework</li><li>Python version and virtual environment information: 3.7.6... -
WPTools.v6.29.1.Pro
2013-08-26 15:33:51* stream RTFvariables were not loaded from WPT format. They are loaded now. 9.11.2012 - WPTools 6.28 - Update to RTF reader to load landscape flag for sections better - when page mirror was used, ... -
Mail/Postfix add LMTP feature request
2020-12-27 03:00:20m using Kopano as mail backend with LMTP:2003 as default way via virtual_mailbox_domains, virtual_transport = lmtp:IP:2003 or transport = lmtp:IP:2003. <p>To add LMTP should work straight... -
corseek 中文检索时搜不出结果 搜英文单词正常
2014-06-27 09:32:23# mandatory, integer document ID field MUST be the first selected column sql_query = \ SELECT id, title, content FROM tt # joined/payload field fetch query # joined fields let you avoid... -
API for retrieving Columns Metadata from DbDataReader
2021-01-11 09:59:02<p>This is however not possible in .Net Core current version as it would hinder portability of apps created on .Net core with .Net framework. <p>... -
If you plan on showing off some of your coursework publicly, you must share only files that you are allowed to. Do NOT disrespect the code of conduct that you signed in the beginning of each course! ...
-
Matrix address classes and interfaces
2021-01-04 03:43:47As since the v2 plugin API hook methods are non virtual, there is no straight forward way to introduce an equally named wrapper-hook with a different signature (hook overloading is not supported).... -
Bauh broken after Manjaro upgrade
2020-12-02 18:18:22<div><p><strong>Describe the bug ...yaml.scanner.ScannerError: mapping values are not allowed here in "", line 37, column 7: tray:</p><p>该提问来源于开源项目:vinifmor/bauh</p></div> -
Lotus-bench crash - "porep proof for sector 1 was invalid
2020-12-02 05:24:32info FIL_PROOFS_USE_GPU_COLUMN_BUILDER=1 FIL_PROOFS_USE_GPU_TREE_BUILDER=1 FIL_PROOFS_MAXIMIZE_CACHING=1 ./lotus-bench sealing --sector-size 32GiB 2>&1 | tee bench-$(date +%s).... -
Use libc++ instead of libstdc++ on Mac
2020-11-29 14:09:40-DMAC_OS_X_VERSION_MAX_ALLOWED=1090', '-mmacosx-version-min=10.8', '-Wall', '-Wpointer-arith', '-Wcast-qual', '-Wcast-align', '-Wno-unused-... -
updating my fork (#1)
2020-11-30 02:50:11that were not recognized. We support all headers registered using the report_headers macro as well as names used when calling report_row macro, as illustrated in the following example <p><%- report... -
Index of / when connecting to website.
2020-12-01 18:51:19<p>This is an INTERNAL... if non-empty, only allow entering these (comma seperated) values in the Classification column ; Note that this is purely a front-end restriction, designed to avoid accidental ... -
chore(deps): update dependency expect to v23
2021-01-04 10:11:43option (Watchman crawler only) that adds virtual files to the Haste map ([#6940](https://renovatebot.com/gh/facebook/jest/pull/6940)) ##### Fixes - `[jest-resolve]` Only resolve realpath ... -
chore(deps): update dependency expect to v24
2021-01-01 09:39:25option allows to change the number of tests allowed to run concurrently ([#7770](https://togithub.com/facebook/jest/pull/7770)) ##### Fixes - `[jest-runtime]` Fix for mocks not working ... -
Running OpenSlides via gunicorn doens't work and produces 500
2020-12-26 06:28:31<div><p>We need to start the OpenSlides Server from our virtual environment via <pre><code> DJANGO_SETTINGS_MODULE=settings PYTHONPATH=/app/personal_data/var gunicorn -w 4 -b 0.0.0.0:8000 -k ... -
Docker image: No Graylog servers available. Cannot log in.
2020-12-01 19:24:02messages within a certain range may not be found). The default +# is to calculate the time range on all open/available indices. +#disable_index_range_calculation = true + +# ... -
FTL crashes when adding domain to audit
2020-12-30 10:16:24in either Allowed or Block queries for 10-15 domains</li><li>FTL crashes</li></ul> <p><strong>Log file output [if available]</strong></p> <pre><code> [2020-07-18 03:45:29.152 17328/T18219] FTL has ...