You are here: Re: Trim the leading characters of a field « PHP SQL « IT news, forums, messages
Re: Trim the leading characters of a field

Posted by strawberry on 10/12/96 11:42

Just a thought - why not find/replace "R ERR"/"ERR" prior to importing


Ian Robinson wrote:
> Hi,
>
> A newbie to php and mySql so please bear with me.
>
> I have imported some data into a table but the first field has a leading "R
> " which I need to trim off all 4,000 records.
>
> Typically the field content is "R ERR3340" and I need to modify this value
> to be "ERR3340"
>
> I have tried
>
>
> UPDATE part_num,
> LTRIM( part_num, "R " ) FROM `source_premier`
>
>
> to no avail
>
> TIA
> Ian

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация