Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to re-name a column?

 
   Database Help (Home) -> mySQL RSS
Next:  dbccdb error message  
Author Message
jimw2

External


Since: Jan 03, 2005
Posts: 3



(Msg. 1) Posted: Thu Feb 10, 2005 7:40 am
Post subject: How to re-name a column?
Archived from groups: mailing>database>mysql (more info?)

I am using Query Browser version 1.1.2, MySQL Administrator 1.0.14, MySQL
Version 4.1.7-nt on Windows XP Service Pack 2

ALTER TABLE `purpleflavours`.`purchaseorderitem` CHANGE COLUMN
`PurchaseCost` `PurchaseOrderItemCost` DOUBLE UNSIGNED ZEROFILL CHARACTER
SET NULL COLLATE NULL NOT NULL DEFAULT 0000000000000000000000

Generates when I click the apply changes button in the MySQL Table editor
window after changing the column name.
This generates an error telling me I have an error in my SQL Syntax

Can anyone tell me what is wrong?

By the way I can use the table editor to change VarChar column names with no
problem but I always get a syntax error if the column type is not a VarChar,
i.e. Double, DateTime, MediumBlob, Integer etc...

Many thanks in advance

Regards

James West

 >> Stay informed about: How to re-name a column? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
With INSERT can I increment an existing value in a column? - Folks, I have a table of addresses and a seperate table with contact names - All addresses tie to one or more names - I would like to keep track of the number of names 'belonging' to an address and have thus included a column in my address table..

select query on latin1 or utf8 column: which is faster? - Assume you have two varchar (or Text) columns named L and U which are identical except that the charset for L is latin1 and the charset for U is utf8. All the records in L and U are identical in terms of content, consisting of only 7 bit ASCII characters...

Best way to issue hundreds of inserts/updates??? - Using mysql 4.0.23- What is the best way to execute several (hundreds of) inserts and updates? Rather than issuing tons of individual inserts and updates, can I send the strings to a text file and then have mysql do them all?? IE : query.txt insert..

MySQL freezes, brings XP machine to a grinding halt - I've been using MySQL for a while for fairly light database development on my XP machine. Currently, I am just starting a new project and have experienced some big problems with MySQL today both on my office machine and at home where running a particular...

login as user 'root' but do not have root privlages and my.. - Hi gang: I'm experiencing a problem with MySQL -- I updated MySQL from version 4.1.0 to 4.1.10 and now when I login as root it doesn't show all the databases I should have access to, nor it doesn't recognize me being logged in as root (via..
   Database Help (Home) -> mySQL All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]