Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. sql query

sql query

Scheduled Pinned Locked Moved Database
databasequestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ptvce
    wrote on last edited by
    #1

    i have 2 table in sqlserver. i want do this command insert into dabirestan (amuzeshgah) values (select amuzeshgah from dabirestan1) i want fill the record of table dabirestan1 to table dabirestan i want write a query. how is my query cammand. do any body know?

    B Z 2 Replies Last reply
    0
    • P ptvce

      i have 2 table in sqlserver. i want do this command insert into dabirestan (amuzeshgah) values (select amuzeshgah from dabirestan1) i want fill the record of table dabirestan1 to table dabirestan i want write a query. how is my query cammand. do any body know?

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      try insert into dabirestan (amuzeshgah) select amuzeshgah from dabirestan1


      I Love T-SQL "Don't torture yourself,let the life to do it for you."

      1 Reply Last reply
      0
      • P ptvce

        i have 2 table in sqlserver. i want do this command insert into dabirestan (amuzeshgah) values (select amuzeshgah from dabirestan1) i want fill the record of table dabirestan1 to table dabirestan i want write a query. how is my query cammand. do any body know?

        Z Offline
        Z Offline
        zahedonline
        wrote on last edited by
        #3

        What Blue_Boy suggested was 100% right in addition to it please make sure that the Second table you use should have the same Design or Table structure of what you are trying to copy to... otherwise the query would fail... :laugh: Cheers,

        ZAK

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups