insert duplicate row

  • I have a list to insert into vice versa. How can I do that?

    A B

    UK AU

    UK US

    Want it in vice versa new row:

    A B

    UK AU

    AU UK

    UK US

    US UK

  • INSERT INTO TableName (A, B)

    SELECT B, A FROM TableName

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Thanks is working fine.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply