Hi I am trying to run this query below:
INSERT INTO Database2.Table2 ('1', getdate(), getdate(), '',ID,'','0','0','0','',ID,'','',getdate(),getdate(),'','0','"stackoverflow.com/"'+'ID','0','product','','0')
SELECT ID
FROM Database1.Table1;
I am inserting a new row with constant data mixed with data from another table, this case Database1.Table1 "ID". I constantly keep getting a select statement error when I try to run this code. Is there something I am overseeing or is this statement all wrong? Thank You
stackoverflow.com/? And why are you quotingIDafter that? That's the same as just writing'"stackoverflow.com/"ID'. Is that ID supposed to be unquoted, so it gets it fromTable1?