You are here: Re: SELECT and regular expression « MsSQL Server « IT news, forums, messages
Re: SELECT and regular expression

Posted by Hugo Kornelis on 04/24/06 23:09

On Mon, 24 Apr 2006 16:37:44 +0100, Martin Lukasik wrote:

>Hi,
>
>I'm not a big friend of MSSQL, but I have to do one query I've done for
>mySQL.
>But I don't know how...
(snip)
>In mySQL it would be something like:
>
>SELECT * FROM `table` WHERE `account` regexp '^[EN][B0]123456$' ORDER BY
>`Id`;

Hi Martin,

Try

SELECT * -- Use column list instead!!
FROM table
WHERE account LIKE '[EN][B0]123456%'
ORDER BY Id

--
Hugo Kornelis, SQL Server MVP

 

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

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