You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
3.5 KiB
SQL

DELETE from tb_cmm_file_detail;
DELETE from tb_cmm_file_mastr;
delete from tb_ec_esb_interface;
DELETE FROM tb_ec_ctzn_sttemnt_detail;
DELETE FROM tb_ec_ctzn_sttemnt;
DELETE FROM tb_ec_ctzn_sttemnt_answer;
DELETE FROM tb_rt_reglt;
DELETE FROM tb_rt_erpp;
DELETE FROM tb_rt_payer;
DELETE FROM tb_rt_process_sttus_change_hist;
DELETE FROM tb_ec_extrl_reglt_cntc;
commit;
select * from tb_cmm_file_detail;
select * from tb_cmm_file_mastr;
/*--------------------------------*/
select * from tb_ec_esb_interface;
select * FROM tb_ec_ctzn_sttemnt_detail;
select * FROM tb_ec_ctzn_sttemnt;
select * from tb_ec_ctzn_sttemnt_answer;
/*--------------------------------*/
/*--------------------------------*/
SELECT * FROM tb_rt_reglt;
SELECT * FROM tb_rt_erpp;
SELECT * FROM tb_rt_payer;
SELECT * FROM tb_rt_process_sttus_change_hist;
/*--------------------------------*/
SELECT * FROM tb_ec_extrl_reglt_cntc;
select * from tb_cmn_code where code_val like '%주정차%';
select * from tb_cmn_code where grp_id like 'ENS%';
select * from tb_cmn_code where grp_id like 'XIT002%';
select * from tb_cmn_code where grp_id like 'WEB002%';
select * from tb_cmn_code where grp_id like 'FIM0%';
select * from tb_code_grp a
inner join tb_cmn_code b on (a.grp_id=b.grp_id)
where a.grp_id like 'FIM%';
SELECT etc_2 AS code
, code_val
FROM tb_cmn_code
WHERE grp_id = 'FIM002'
AND use_yn = 'Y'
AND etc_1 = CASE WHEN etc_2 IS NULL THEN 'NONE'
WHEN etc_2 = '' THEN 'NONE'
ELSE etc_2
END
ORDER BY srt_ord;
SELECT etc_1
, code_val
FROM tb_cmn_code
WHERE grp_id ='FIM002'
AND use_yn = 'Y'
AND etc_1 = CASE WHEN ETC_1 IS NULL THEN 'NONE'
WHEN etc_1 = '' THEN 'NONE'
ELSE ETC_1
END
ORDER BY srt_ord;
SELECT A.USER_ID
,A.ORGNZT_ID
,A.USER_NM
,A.PASSWORD
,A.EMPL_NO
,A.IHIDNUM
,A.SEXDSTN_CODE
,A.BRTHDY
,A.FXNUM
,A.HOUSE_ADRES
,A.PASSWORD_HINT
,A.PASSWORD_CNSR
,A.HOUSE_END_TELNO
,A.AREA_NO
,A.DETAIL_ADRES
,A.ZIP
,A.OFFM_TELNO
,A.MBTLNUM
,A.EMAIL_ADRES
,A.OFCPS_NM
,A.HOUSE_MIDDLE_TELNO
,A.GROUP_ID
,A.PSTINST_CODE
,A.USER_STTUS_CODE
,A.ESNTL_ID
,A.CRTFC_DN_VALUE
,A.SBSCRB_DE
,B.JOB_DATA_AUTHOR
,B.USER_MANAGE_AUTHOR
,B.ELCTRNSANCTN_USE_YN
,B.JOB_CONFM_AUTHOR_YN
FROM XIT_USER_INFO A
LEFT JOIN XIT_USER_ETC_OPTION B ON A.USER_ID=B.USER_ID
WHERE 1=1
AND A.USER_ID = 'admin';
select * from xit_user_info where USER_ID = 'admin';
select * from XIT_ORGNZT_INFO;
SELECT ORGNZT_ID
,ORGNZT_NM
,DSCRP
FROM XIT_ORGNZT_INFO
WHERE 1=1
AND ORGNZT_ID = 'BPV';
select * from tb_code_grp where GRP_NM like '%과태료%';
UPDATE tb_ec_ctzn_sttemnt
SET ctzn_sttemnt_process_sttus = IF((select count(interface_seq_n)
from tb_ec_ctzn_sttemnt_detail
where interface_seq_n = '2022091609485381568241998'
and ctzn_sttemnt_detail_process_sttus = '01') > 0, 'Y', 'N')
WHERE interface_seq_n = '2022091609485381568241998'
;
SELECT menu_no
, srt_ord
, menu_nm
, prnt_no
, dscrp
, img_cnf AS relateImagePath
, img_nm
, pgrm_file_nm
FROM tb_menu
WHERE prnt_no = '80020000'
;
DELETE
FROM tb_menu
WHERE menu_no = '80020100';
;
select * from
xit_menu_creat_dtls;