table = db.exec_sql("""insert into dw.part_subject ( part_name, part_type, part_status, reg_date, source_id, source) select case when iccard_name is not null then iccard_name else name end, ‘0‘, ‘0‘, create_datetime, id, ‘‘ from ods.sl_account_560;""")