[DB]sequelize

Dragon_Tack·2022년 1월 11일
0

해당 데이터 temp테이블에 넣기

select * into from (values ('aa','bb','cc')) temp ("칼럼1","칼럼2","칼럼3");

Inner Join
update 테이블명 i set "칼럼" = t."칼럼" from temp t where i.기본값 t.기본값;

시간일시에

"시간칼럼" =cast(t."시간칼럼" as date) from temp where 조건

해당 문서 참조해서 공부해야할 것 : https://yunbo96.tistory.com/14
postgres 연습장소 : http://sqlfiddle.com/#!17/70f9a/1

profile
고민의 흔적을 늘여놓는 공간

0개의 댓글