我正在尝试按照来自 Adminer 4.6.2 的查询运行他,它给了我一个模糊的“语法错误”,没有进一步的细节:
db_query("DELETE FROM {field_collection_item} WHERE field_name NOT IN (SELECT field_name FROM {field_config} WHERE type = 'field_collection')");
我也试过这个:
DELETE FROM {field_collection_item} WHERE field_name NOT IN (SELECT field_name FROM {field_config} WHERE type = 'field_collection')
但它返回相同的语法错误。