SELECT "id", "add_time", "add_user_id", "is_dele", "up_user_id", "update_time", "name", "parent_id", "province_id", "city_id", "country_id", "street_id", "village_id", "unified_code", "corp_type_id", "corp_type_min_id", "subordination", "status", "corp_scale", "is_above_scale", "longitude", "latitude", "has_health", "has_hazard", "has_special_equipment", "has_special_person", "is_emer_supplies", "is_involving_chemicals", "is_involving_coalgas", "is_firefighting_unit", "is_space_operation", "is_lightning_protection", "is_dust_operation", "is_radioactive_source", "is_ammonia_involvede", "is_chemicals_pipeline", "ammonia_involvede_reserves", "dust_operation_type", "corp_size", "business_address", "registered_address", "work_address", "gridman", "industry_sector", "safecode_type" FROM "public"."tb_corp_info"; UPDATE 批量修改safecode_type
时间: 2023-08-26 13:04:37 浏览: 150
C语言程序设计_通讯录
4星 · 用户满意度95%
这是一条SQL语句,查询了名为public.tb_corp_info的表中的若干列,并且没有使用WHERE子句限定查询条件,因此会返回该表中的所有记录。同时,该SQL语句还包括一条UPDATE语句,但是这条语句不完整,没有指定要修改的列名和修改的值。如果您想要批量修改safecode_type列的值,应该在UPDATE语句后添加SET子句来指定要修改的列和修改的值,再使用WHERE子句限定修改条件。例如:
UPDATE public.tb_corp_info SET safecode_type = 'new value' WHERE id > 100;
该语句将所有id大于100的记录的safecode_type列的值修改为'new value'。请注意,具体的修改操作需要根据实际情况进行调整。
阅读全文