473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Table rows are reordering after I delete a primary key column

I have a simple table with a primary id column called id.
I have a need to ALTER the table and delete the primary id column. When I do the first 6 rows are reordered to the bottom of the table. I do not want them to be reordered. Any thoughts? Thanks in advance.
Sep 26 '14 #1

✓ answered by Rabbit

The primary key is usually the clustered index which determines storage order. Why would you need to delete the primary key? There's almost never a good reason to delete a primary key field.

1 2036
Rabbit
12,516 Expert Mod 8TB
The primary key is usually the clustered index which determines storage order. Why would you need to delete the primary key? There's almost never a good reason to delete a primary key field.
Sep 27 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Harry Gould | last post by:
To all, I'm a newbie here, so please bear with me. I develop web pages for a company intranet where Internet Explorer 6 is the standard. Now I must develop a public internet website that is...
8
by: Andy Fish | last post by:
Hi, I am trying to show/hide a group of table rows using javascript and CSS. if I group them in a <tbody> element I can do: my_tbody_element.style.display="none"; to hide them and ...
17
by: cu ti | last post by:
Hi I try to delete a column of the table but AIX - WIN db2 did not allow me to do this ALTER TABLE table_name DROP COLUMN column_name Does anyone know how to do it please help Thanks
3
by: Antanas | last post by:
Why is that even though I have added index with DESC sort order on primary key, records in Control Center are displayed by the sequence they were previously inserted, not by the value of primary...
5
by: rAinDeEr | last post by:
Consider the following table (Single level of hierarchy ... No need for recursion) PRIMARY_COLUMN SECONDARY_COLUMN ----------------------------- ----------------------------------- ...
1
by: samn | last post by:
I wrote the following script in order to traverse an HTML table and merge the cells that have the same value across multiple rows. For some reason, however, it works for the first, third, and...
7
by: leiño | last post by:
Hi, i am adding table rows dynamically with javascript. This works fine. The table is inside a div with scrolls, initially with 6 rows: ..... <div style='overflow:auto; width:100%;...
1
nirmalsingh
by: nirmalsingh | last post by:
hi all, i want to delete current column of a html table by clicking a button. is it possible to do that? i tried to delete a current row of a table it works fine but i want to know how to do the...
4
by: ranjithgopalan | last post by:
Please help me to delete particular column by keeping primary key
6
by: fikaqqq | last post by:
I need to be able to delete table rows from database via link which is shown down below, but i don't know how to form javascript function which will enable that. So, this is how my index.php looks...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.