M
Mark Kurten
i used the sqldataadapter wizard to generate the following insert statement
"
("INSERT INTO Company(Code, Name, Address1, Address2, Address3, Address4,
BEGINDT, " & _
"BegCheck#, EndCheck#, CancelDate, InsType, STATE) VALUES (@Code, @Name,
@Address" & _
"1, @Address2, @Address3, @Address4, @BEGINDT, @BegCheck#, @EndCheck#,
@CancelDat" & _
"e, @InsType, @STATE); SELECT Code, Name, Address1, Address2, Address3,
Address4," & _
" BEGINDT, BegCheck#, EndCheck#, CancelDate, InsType, STATE FROM Company
WHERE (C" & _
"ode = @Code)")
"
My question is, why is there a select statement included with the insert
statement?
thanks.
"
("INSERT INTO Company(Code, Name, Address1, Address2, Address3, Address4,
BEGINDT, " & _
"BegCheck#, EndCheck#, CancelDate, InsType, STATE) VALUES (@Code, @Name,
@Address" & _
"1, @Address2, @Address3, @Address4, @BEGINDT, @BegCheck#, @EndCheck#,
@CancelDat" & _
"e, @InsType, @STATE); SELECT Code, Name, Address1, Address2, Address3,
Address4," & _
" BEGINDT, BegCheck#, EndCheck#, CancelDate, InsType, STATE FROM Company
WHERE (C" & _
"ode = @Code)")
"
My question is, why is there a select statement included with the insert
statement?
thanks.