MySQL Forums
Forum List  »  NDB clusters

Re: Why I cannot decrease the field size (table is full)
Posted by: Stewart Smith
Date: October 23, 2005 06:50PM

ALTER TABLE copies the table to a temporary table (with the new structure), deletes the original and then renames the temp table.

So you need to have enough memory free to copy the table.

also - you do know that there's no storage difference between tinyint(3) and tinyint(1) don't you? The number is purely for display purposes. So you can ask the question - why do you need to change the field?

Stewart Smith, Software Engineer - MySQL Cluster
MySQL AB, www.mysql.com

Jumpstart your cluster:
http://www.mysql.com/consulting/packaged/cluster.html

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Why I cannot decrease the field size (table is full)
1362
October 23, 2005 06:50PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.