I want to copy data from Table A to Table B in Postgres. Table A contains 40 columns and Table B contains 20 columns. It's like Table B is the subset of Table A, which means - Table B contains only some columns which are in Table A.
I have found the answer https://stackoverflow.com/a/7483174/12556735 for copying the data if there are less number of columns.
Since there are many columns , is there any way in which we can copy data without mentioning the Column names?