You are here: Regular Expression during SELECT « PHP SQL « IT news, forums, messages
Regular Expression during SELECT

Posted by Mr.Mime on 05/31/06 15:18

Hi to all.
Excuse my bad english but I have a problem with a query.

I have a table with a colum with datas formatted like this:
name//surname

For example:

ID | INFO
1 | George//Bush
2 | Silvio//Berlusconi

What I need is a SELECT with an order by the surname. In the example it
must return
2 and than 1 because Berlusconi is lower than Bush.

I think a regular expression will be fit for this task but I don't know
how to use it.
I'm using PostGre SQL with allow subSelection.

Thanks to all for any help.

 

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

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