Skip to content
Advertisement

Oracle insert from select into table with more columns

I want to insert to a table from a select statement, however, there are 3 columns returned from the select statement and the table has 4 columns, I would like to add 0 for all rows in the extra column. Can anyone give me a sample SQL query for that?

Thank you!

Advertisement

Answer

Just add in the ‘0’ in your select.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement