프로그래밍/SQL
[mysql] 합의 값을 다른 테이블에 업데이트
Luhie
2017. 2. 27. 12:43
합을 구했으면 다른 테이블에 업데이트를 시켜야죠.
꼭 합 뿐만이 아니라 어떠한 데이터를 다른 테이블에 넣을 때
tb_person 테이블에 person_total_mileage 가 존재
tb_mileage 테이블에 person_id, milegae_cate_cd, milegae_use_price 존재
tb_mileage_cate 테이블에 mileage_cate_cd, mileage_price 존재