장바구니에 상품이 없습니다.
home2 › 게시판 › Node.js, Express 게시판 › A테이블 데이터를 B데이터로 복사하고싶습니
var qsql = 'INSERT INTO trash SELECT (post.id, post.title, post.content , post.lastdate) FROM post'; 구글 검색햇더니 이렇게 하라는데 post에 있는 테이블 데이터에서 post.id, post.title, post.content, post.lastdate 만 trash테이블 에 값을 넣고싶습니다 구글 계속 검색하면서 다 해봤는데 안되네여
var qsql = 'INSERT INTO trash (trash.id, trash.title, trash.content, trash.lastdate) SELECT post.id, post.title, post.content , post.lastdate FROM post'; 로 해결했습니다 감사합니다