insert into dmitem@itf_jst(
consignor_code, item_code, item_name, barcode, opcode, formulation, supplier_city,
item_bigsort, item_hitsort, inner_code, pack_no, package_number, bigpackage_number,
big_weight, big_length, big_width, big_height, weight, length, width, height,
storage_conditions, consignor_item_name, specifications, supplier_code, approval_number,
trade, item_unit, item_cess, trade_price, retail_price, maintenance_cycle,
item_validity, state, isstimulant, specialsort, isbatchs, isimport, isregulation, isbirth,
isexamine, istrack, isconsrelease, re)
select
consignor_code, item_code, item_name, barcode, "OPCODE", formulation, supplier_city,
item_bigsort, item_hitsort, inner_code, pack_no, package_number, bigpackage_number,
big_weight, big_length, big_width, big_height, weight, length, width, height,
storage_conditions, consignor_item_name, specifications, supplier_code, approval_number,
trade, item_unit, item_cess, trade_price, retail_price, maintenance_cycle,
item_validity, state, isstimulant, specialsort, isbatchs, isimport, isregulation, isbirth,
isexamine, istrack, isconsrelease, re
from
jst_view_article;
提示:此操作的 global_names 参数必须设置为 True
但是奇怪的是我把 "OPCODE" 改为 'opcode' 就可以顺利执行(这样就不能插入字段的值了)
对方数据库的 global_names 要求不能设为 True; 我该怎么办?
2、select "OPCODE" from jst_view_article;等同于 select opcode from jst_view_article;
但是,select 'opcode' from jst_view_article;得到是值全是'opcode'的记录。
不知道能不能解决你的问题?
既然与 global_names 无关的话,怎么解决我这个问题呢
我想说的是,我把 jst_view_article.opcode 随便改成一个字符,比如:'test'; 它就能顺利执行,到底是怎么回事啊
我想说的是,我把 jst_view_article.opcode 随便改成一个字符,比如:'test'; 它就能顺利执行,到底是怎么回事啊
我在试图 jst_view_article.opcode 字段中用到了一个自定义的函数 isnumeric
将这个自定义函数注释掉就可以顺利执行,我想应该是权限问题!如何把这个权限问题解决呢?
我的数据库用户本身就是 DBA 权限了,难道还要设置对方数据库用户的权限?!!