sql 截断所有TEST表,准备将LIVE复制到它们。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql 截断所有TEST表,准备将LIVE复制到它们。相关的知识,希望对你有一定的参考价值。
/*
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-- CAUTION -- CAUTION -- CAUTION -- CAUTION -- CAUTION -- CAUTION -- CAUTION --
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This script will truncate NECESSARY tables REQUIRED TO RUN MSS...DO NOT RUN
UNLESS YOU ARE ABSOLUTELY CERTAIN YOU ARE IN TEST!!!
YOU HAVE BEEN WARNED! YOU HAVE BEEN WARNED! YOU HAVE BEEN WARNED!
THIS SCRIPT NEEDS TO BE RUN BEFORE RUNNING TALEND JOB "CopyLive2Test"
*/
TRUNCATE TABLE employee_profile;
TRUNCATE TABLE employee_profile_upload;
TRUNCATE TABLE employee_times;
TRUNCATE TABLE finalized;
TRUNCATE TABLE groups;
TRUNCATE TABLE slot_limits;
TRUNCATE TABLE slots;
TRUNCATE TABLE sub_group;
TRUNCATE TABLE time_block_spec;
TRUNCATE TABLE unit_events;
TRUNCATE TABLE unit_np_time;
TRUNCATE TABLE unit_spec;
TRUNCATE TABLE unit_times;
TRUNCATE TABLE ot_req;
TRUNCATE TABLE eval_empl_pr;
TRUNCATE TABLE eval_pg01;
TRUNCATE TABLE eval_pg02;
TRUNCATE TABLE eval_pg03;
TRUNCATE TABLE eval_pg04;
TRUNCATE TABLE eval_pg05;
TRUNCATE TABLE eval_pg06;
TRUNCATE TABLE eval_pg08;
TRUNCATE TABLE eval_pg09;
TRUNCATE TABLE eval_pg10;
TRUNCATE TABLE eval_pg12;
TRUNCATE TABLE eval_pg13;
TRUNCATE TABLE ier_certifications;
TRUNCATE TABLE ier_community;
TRUNCATE TABLE ier_courses;
TRUNCATE TABLE ier_degree;
TRUNCATE TABLE ier_degree_types;
TRUNCATE TABLE ier_honors;
TRUNCATE TABLE ier_inservice;
TRUNCATE TABLE ier_life_cert_codes;
TRUNCATE TABLE ier_life_certs;
TRUNCATE TABLE ier_magnet_cert;
TRUNCATE TABLE ier_organizations;
TRUNCATE TABLE ier_presentation_type;
TRUNCATE TABLE ier_presentations;
TRUNCATE TABLE ier_publications;
TRUNCATE TABLE ier_settings;
TRUNCATE TABLE ier_states;
TRUNCATE TABLE ier_teams;
TRUNCATE TABLE magnet_apn_certs;
TRUNCATE TABLE magnet_cert;
TRUNCATE TABLE magnet_cns_certs;
TRUNCATE TABLE magnet_dif_units;
TRUNCATE TABLE magnet_position_groups;
TRUNCATE TABLE magnet_profiles;
TRUNCATE TABLE magnet_profiles_hh;
以上是关于sql 截断所有TEST表,准备将LIVE复制到它们。的主要内容,如果未能解决你的问题,请参考以下文章
在 SQL Server 2005 中截断数据库的所有表
sql 截断特定模式中的所有表。
sql 截断所有MySQL表
sql 截断sql server数据库中的所有表
访问链接表从 SQL 服务器截断我的十进制值
Sql 2 表 Q? [复制]