大家好,我有一个数据库,在那里我需要用逗号分隔值更新它的一个字段。我需要做的事情就像..。假设字段中的值是872,875,879,我需要将812添加到这个字段中,这样在更新后,它应该看起来像872,875,879,812,同时我需要在specific_id表中的剩余区域中使用一些空值812进行更新目前添加数字的方法如下所示 sl_no name col1
update test as t where t.id in (select tgt.test_id from test_group_tests as tgt where(select t.id from test where t.agent in (1)) and tgt.testgroup_id not in (20,58,23,37,447));
我尝试了这个查询它是不是缺少内部连接或其他什么?
我有一个Update查询,其中from表与一个连接表相同。看上去像这样Set NewContactId = repCt.IdJoin Contacts repCt on repCt.ClientIdbunch of other criteria hitting both ct and repCt>
当我运行它时,我可能会出现一个声明为The table 'Contacts' is ambiguous的错误,这意