I've searched as many ways as I can and have not found a solution to this, so I'm guessing it can't be done (at least not easily). However, I figured I'd through it out there and see if I'm missing something obvious.
I'm looking for a SQL statement that will allow me to INSERT INTO tbl SELECT * FROM tbl WHERE id=1, where tbl has an identity field. Naturally, this statement produces an error because you can't insert a value into the identity field. I know I could list out every field twice, but I was hoping for a simpler solution.
Thanks.
I'm looking for a SQL statement that will allow me to INSERT INTO tbl SELECT * FROM tbl WHERE id=1, where tbl has an identity field. Naturally, this statement produces an error because you can't insert a value into the identity field. I know I could list out every field twice, but I was hoping for a simpler solution.
Thanks.