You are here: Re: OT - ORACLE « PHP Programming Language « IT news, forums, messages
Re: OT - ORACLE

Posted by petersprc on 11/16/07 02:42

Hi,

You could probably select rownum.

On Nov 15, 12:30 pm, "Steve" <no....@example.com> wrote:
> i know i know...just get over it. look at the date of the last post/response
> in an oracle ng. :)
>
> this is a mysql specific query. i want to do the same thing in oracle. i
> don't know how. the following gives a dynamic/unique id number to a set of
> selected records. it kind of mimics RANK() in oracle. it's based on a
> cartesian...anyway, if anyone can fill me in on a similar oracle translation
> to this mysql query, i'd just about break down and cry from joi.
>
> tia
>
> =============
>
> SELECT @id := @id + 1 Id ,
> Value
> FROM
> (
> SELECT @id := 0
> ) uniqueId ,
> (
> SELECT 'ABC' Value
> UNION
> SELECT 'DEF' Value
> UNION
> SELECT 'GHI' Value
> ) pseudoTable

 

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

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