1%ตลอดเลยครับตามภาพ รบกวนอาจารย์ช่วยด้วยครับ
select data_type from information_schema.columns where table_schema='hosxp_pcu' and table_name = 'house' and column_key = 'PRI'
select count(*) as cc from pcu_dw_track where table_name = 'house'
select * from pcu_dw_track where table_name = 'house'
select concat(sum(CONV(SUBSTRING(md5(house_id), 1,8),16,10)) , sum(CONV(SUBSTRING(md5(house_id), 9,8),16,10)), sum(CONV(SUBSTRING(md5(house_id), 17,8),16,10)), sum(CONV(SUBSTRING(md5(house_id), 25,8),16,10))) as sig from house
select column_name from information_schema.columns where table_schema='hosxp_pcu' and table_name = 'person' and column_key = 'PRI'
select data_type from information_schema.columns where table_schema='hosxp_pcu' and table_name = 'person' and column_key = 'PRI'
select count(*) as cc from pcu_dw_track where table_name = 'person'
select * from pcu_dw_track where table_name = 'person'
DELETE FROM pcu_dw_track
WHERE
pcu_dw_track_id = ?
:Old_pcu_dw_track_id(Integer,IN)=222105
DELETE FROM pcu_dw_track
WHERE
pcu_dw_track_id = ?
:Old_pcu_dw_track_id(Integer,IN)=222448
select hos_guid from person where person_id in (8870,7356)
select column_name from information_schema.columns where table_schema='hosxp_pcu' and table_name = 'person' and column_key = 'PRI'
select data_type from information_schema.columns where table_schema='hosxp_pcu' and table_name = 'person' and column_key = 'PRI'
select count(*) as cc from pcu_dw_track where table_name = 'person'
select * from pcu_dw_track where table_name = 'person'
select concat(sum(CONV(SUBSTRING(md5(person_id), 1,8),16,10)) , sum(CONV(SUBSTRING(md5(person_id), 9,8),16,10)), sum(CONV(SUBSTRING(md5(person_id), 17,8),16,10)), sum(CONV(SUBSTRING(md5(person_id), 25,8),16,10))) as sig from person
select concat(sum(CONV(SUBSTRING(md5(person_id), 1,8),16,10)) , sum(CONV(SUBSTRING(md5(person_id), 9,8),16,10)), sum(CONV(SUBSTRING(md5(person_id), 17,8),16,10)), sum(CONV(SUBSTRING(md5(person_id), 25,8),16,10))) as sig from person
select column_name from information_schema.columns where table_schema='hosxp_pcu' and table_name = 'sex' and column_key = 'PRI'
select data_type from information_schema.columns where table_schema='hosxp_pcu' and table_name = 'sex' and column_key = 'PRI'
select count(*) as cc from pcu_dw_track where table_name = 'sex'
select * from pcu_dw_track where table_name = 'sex'
select concat(sum(CONV(SUBSTRING(md5(code), 1,8),16,10)) , sum(CONV(SUBSTRING(md5(code), 9,8),16,10)), sum(CONV(SUBSTRING(md5(code), 17,8),16,10)), sum(CONV(SUBSTRING(md5(code), 25,8),16,10))) as sig from sex