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

How to disable auto truncation of char binary column

 
   Database Help (Home) -> mySQL RSS
Next:  URGENT: Supporting different DBMS.  
Author Message
Leif Wessman1

External


Since: Sep 09, 2004
Posts: 1



(Msg. 1) Posted: Tue Feb 08, 2005 4:47 am
Post subject: Re: How to disable auto truncation of char binary column [Login to view extended thread Info.]
Archived from groups: mailing>database>mysql (more info?)

bump

Leif Wessman wrote:
 > Why is a single space truncated in the following example?
 >
 > Leif
 >
 > alter table CURRENCY
 > change column THOUSANDS_SEP THOUSANDS_SEP char(1) binary not null
 > , type=MyISAM
 >
 > UPDATE CURRENCY SET THOUSANDS_SEP = ' ' WHERE NAME = 'SEK'
 >
 > SELECT LENGTH(THOUSANDS_SEP) AS L FROM CURRENCY WHERE NAME = 'SEK'
 > Result: L = 0

 >> Stay informed about: How to disable auto truncation of char binary column 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to re-name a column? - 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..

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...
   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 ]