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. modify a table scheme [modified]

modify a table scheme [modified]

Scheduled Pinned Locked Moved Database
6 Posts 4 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.
  • G Offline
    G Offline
    genieabdo
    wrote on last edited by
    #1

    hi i'm lookin for changing a scheme of my table who can i do it I already have a table with 20,000 record I created a new partition with a new shceme I want applied to my table thanks

    modified on Tuesday, October 12, 2010 10:26 AM

    B G G B 4 Replies Last reply
    0
    • G genieabdo

      hi i'm lookin for changing a scheme of my table who can i do it I already have a table with 20,000 record I created a new partition with a new shceme I want applied to my table thanks

      modified on Tuesday, October 12, 2010 10:26 AM

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

      Use ALTER TABLE[^]


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

      G 1 Reply Last reply
      0
      • B Blue_Boy

        Use ALTER TABLE[^]


        I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

        G Offline
        G Offline
        genieabdo
        wrote on last edited by
        #3

        i did'n fing a alter table for changing scheme the partition of table

        1 Reply Last reply
        0
        • G genieabdo

          hi i'm lookin for changing a scheme of my table who can i do it I already have a table with 20,000 record I created a new partition with a new shceme I want applied to my table thanks

          modified on Tuesday, October 12, 2010 10:26 AM

          G Offline
          G Offline
          Gerben Jongerius
          wrote on last edited by
          #4

          You can't, that is to say you could create a new instance in the schema and then populate it. But you won't copy keys, indexes or constraints. The query below would do that.

          insert into newscheme.dbo.mytable
          select * from oldscheme.dbo.mytable

          1 Reply Last reply
          0
          • G genieabdo

            hi i'm lookin for changing a scheme of my table who can i do it I already have a table with 20,000 record I created a new partition with a new shceme I want applied to my table thanks

            modified on Tuesday, October 12, 2010 10:26 AM

            G Offline
            G Offline
            genieabdo
            wrote on last edited by
            #5

            I already have a table with 20,000 record I created a new partition with a new shceme I want applied to my table

            1 Reply Last reply
            0
            • G genieabdo

              hi i'm lookin for changing a scheme of my table who can i do it I already have a table with 20,000 record I created a new partition with a new shceme I want applied to my table thanks

              modified on Tuesday, October 12, 2010 10:26 AM

              B Offline
              B Offline
              Bernhard Hiller
              wrote on last edited by
              #6

              Please try to add some further information, perhaps we can understand then what you are trying to do. Which database do you use - Oracle? What is that "partition" - a partition of your hard disk, a "table space", ...? What is the "scheme" - is that the wording used by Oracle? And finally, what do you mean with "applied to my table"? Do you want to copy/move your table to that scheme?

              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