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
MySQL

2 years ago
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_crdn;
2 years ago
DELETE FROM tb_rt_erpp;
DELETE FROM tb_payer;
2 years ago
DELETE FROM tb_rt_process_sttus_change_hist;
DELETE FROM tb_crdn_file_link;
2 years ago
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_crdn;
2 years ago
SELECT * FROM tb_rt_erpp;
SELECT * FROM tb_payer;
2 years ago
SELECT * FROM tb_rt_process_sttus_change_hist;
/*--------------------------------*/
SELECT * FROM tb_crdn_file_link;
2 years ago
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%';
2 years ago
SELECT etc_2 AS code
, code_val
FROM tb_cmn_code
WHERE grp_id = 'FIM002'
AND use_yn = 'Y'
2 years ago
AND etc_1 = CASE WHEN etc_2 IS NULL THEN 'NONE'
WHEN etc_2 = '' THEN 'NONE'
ELSE etc_2
END
ORDER BY srt_ord;
2 years ago
SELECT etc_1
, code_val
FROM tb_cmn_code
WHERE grp_id ='FIM002'
AND use_yn = 'Y'
2 years ago
AND etc_1 = CASE WHEN ETC_1 IS NULL THEN 'NONE'
WHEN etc_1 = '' THEN 'NONE'
ELSE ETC_1
END
ORDER BY srt_ord;
2 years ago
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
2 years ago
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
2 years ago
FROM XIT_ORGNZT_INFO
WHERE 1=1
AND ORGNZT_ID = 'BPV';
select * from tb_code_grp where GRP_NM like '%과태료%';
2 years ago
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
2 years ago
, menu_nm
, prnt_no
, dscrp
, img_cnf AS relateImagePath
, img_nm
, pgrm_file_nm
FROM tb_menu
WHERE prnt_no = '80020000'
2 years ago
;
DELETE
FROM tb_menu
2 years ago
WHERE menu_no = '80020100';
;
2 years ago
select * from
xit_menu_creat_dtls;