I am trying to insert values from one table into another, with an additional parameter that is required. For example:
INSERT INTO table1(someInt, someOtherInt, name, someBit)
SELECT someInt, someOtherInt, name FROM table2
someBit is not allowed to be null and I need to set it to False, but I'm not quite sure how to use it in the same INSERT statement. (I am using SQL 2005 if that matters)
edit: Oh ... it looks like I threw the filet of the minion to the lions :-)
source
share