You are here: Re: How write this sentence with T-SQL « MsSQL Server « IT news, forums, messages
Re: How write this sentence with T-SQL

Posted by Ed Murphy on 07/19/07 00:48

Hugo Kornelis wrote:

> On Wed, 18 Jul 2007 10:56:05 -0700, simonshang@gmail.com wrote:
>
>> I want delete the symbol "-" in the row "NIF". eg. A-1234 change to
>> A1234, D-453-DF to D453DF
>
> Hi Simon,
>
> SELECT REPLACE(NIF, '-', '')
> FROM YourTable;

Or, if you want to change the data in the table (not just the
data in your query output):

UPDATE YourTable
SET NIF = REPLACE(NIF, '-', '')

 

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

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