Re: Why I cannot decrease the field size (table is full)
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
Subject
Views
Written By
Posted
2117
October 21, 2005 02:04AM
Re: Why I cannot decrease the field size (table is full)
1418
October 23, 2005 06:50PM
1427
October 24, 2005 01:33AM
1547
November 03, 2005 12:58AM
Sorry, you can't reply to this topic. It has been closed.
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.