SQL Anywhere错误-728:尝试对不可更新的远程查询执行更新操作

SQL Anywhere错误-728:尝试对不可更新的远程查询执行更新操作,sql,sql-update,sap-iq,Sql,Sql Update,Sap Iq,我想做的是: update table_name set field2 = substring(REGEXP_SUBSTR(field1, 'item=[0-9]+', charindex('item=', field1)), 6) 但是我越来越 SQL Anywhere Error -728: Update operation attempted on non-updatable remote query 我能解决它吗?我不使用本地/远程表。我用一张桌子。所以我想我找到了Solion。。。

我想做的是:

update table_name set field2 = substring(REGEXP_SUBSTR(field1, 'item=[0-9]+', charindex('item=', field1)), 6)
但是我越来越

SQL Anywhere Error -728: Update operation attempted on non-updatable remote query

我能解决它吗?我不使用本地/远程表。我用一张桌子。所以我想我找到了Solion。。。偶数2。 不幸的是,仍然无法使用REGEXP\u SUBSTR。。。 我有:

首先

alter table my_table add item_position int null
alter table my_table add is_char int null
alter table my_table add item_part varchar(200) null
alter table my_table add item bigint null    

update my_table set item_position = charindex('item=', field1)+5; 
update my_table set item_part = substring(field1, item_pos, 10); 
update my_table set is_char = charindex('&', clid_part)-1;     
update my_table set item = case when is_char = -1 then item_part else substring(item_part, 1, charindex('&', item_part)-1) end;

cast(str_replace(substring(field1, charindex('item=', field1)+5, 10), substring(substring(field1, charindex('item=', field1)+5, 10), 
(charindex('&', substring(field1, charindex('clid=', field1)+5, 10)))), '') as integer) as item

类似这样的内容

我建议再次检查table\u name是否实际上是一个表,而不是一个视图。如果它是一个视图,您可以使用sp_helptext命令查看其定义,例如

sp\u帮助文本“查看\u名称”

sp\u帮助文本“架构\u名称。视图\u名称”


看看这个问题:这个问题解决不了问题。当然,我在sybase站点上阅读了说明,但我需要以任何方式更新我的表。您的表是远程表吗?我正在通过主机:端口连接到sybase iq服务器,我想表对于服务器来说不是远程的,可能对我来说是远程的(对于我的本地机器)?