Thank You So Much !!!! Louis van Alphen....
You saved me....
Thanks A Ton Again !!!!!!

 

     On Friday, 13 March 2015 5:50 PM, "'Louis van Alphen' lo...@nucleo.co.za 
[firebird-support]" <firebird-support@yahoogroups.com> wrote:
   

     select

cast(rdb$get_context('USER_TRANSACTION', 'row#') as integer) as row_number,

rdb$set_context('USER_TRANSACTION', 'row#',

coalesce(cast(rdb$get_context('USER_TRANSACTION', 'row#') as integer), 0) + 1),

< other columns>

from MY_TABLE

From: firebird-support@yahoogroups.com 
[mailto:firebird-support@yahoogroups.com] 
Sent: 13 March 2015 01:58 PM
To: firebird-support@yahoogroups.com
Subject: [firebird-support] How To Generate Auto Increment Number in SQL Itself 
?

Hi All,

I have one question, any SQL I write, I would like to get auto-increment number 
(separate column obviously) to every row starting with 1. It is just to 
numbering every record I get as an output of my sql. I do not want to use 
Generate which we do on table. This is just for SQL output I need.

Thanks In Advance.

With Best Regards.

Vishal

[Non-text portions of this message have been removed]

  #yiv8884958541 #yiv8884958541 -- #yiv8884958541ygrp-mkp {border:1px solid 
#d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv8884958541 
#yiv8884958541ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv8884958541 
#yiv8884958541ygrp-mkp #yiv8884958541hd 
{color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 
0;}#yiv8884958541 #yiv8884958541ygrp-mkp #yiv8884958541ads 
{margin-bottom:10px;}#yiv8884958541 #yiv8884958541ygrp-mkp .yiv8884958541ad 
{padding:0 0;}#yiv8884958541 #yiv8884958541ygrp-mkp .yiv8884958541ad p 
{margin:0;}#yiv8884958541 #yiv8884958541ygrp-mkp .yiv8884958541ad a 
{color:#0000ff;text-decoration:none;}#yiv8884958541 #yiv8884958541ygrp-sponsor 
#yiv8884958541ygrp-lc {font-family:Arial;}#yiv8884958541 
#yiv8884958541ygrp-sponsor #yiv8884958541ygrp-lc #yiv8884958541hd {margin:10px 
0px;font-weight:700;font-size:78%;line-height:122%;}#yiv8884958541 
#yiv8884958541ygrp-sponsor #yiv8884958541ygrp-lc .yiv8884958541ad 
{margin-bottom:10px;padding:0 0;}#yiv8884958541 #yiv8884958541actions 
{font-family:Verdana;font-size:11px;padding:10px 0;}#yiv8884958541 
#yiv8884958541activity 
{background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv8884958541
 #yiv8884958541activity span {font-weight:700;}#yiv8884958541 
#yiv8884958541activity span:first-child 
{text-transform:uppercase;}#yiv8884958541 #yiv8884958541activity span a 
{color:#5085b6;text-decoration:none;}#yiv8884958541 #yiv8884958541activity span 
span {color:#ff7900;}#yiv8884958541 #yiv8884958541activity span 
.yiv8884958541underline {text-decoration:underline;}#yiv8884958541 
.yiv8884958541attach 
{clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 
0;width:400px;}#yiv8884958541 .yiv8884958541attach div a 
{text-decoration:none;}#yiv8884958541 .yiv8884958541attach img 
{border:none;padding-right:5px;}#yiv8884958541 .yiv8884958541attach label 
{display:block;margin-bottom:5px;}#yiv8884958541 .yiv8884958541attach label a 
{text-decoration:none;}#yiv8884958541 blockquote {margin:0 0 0 
4px;}#yiv8884958541 .yiv8884958541bold 
{font-family:Arial;font-size:13px;font-weight:700;}#yiv8884958541 
.yiv8884958541bold a {text-decoration:none;}#yiv8884958541 dd.yiv8884958541last 
p a {font-family:Verdana;font-weight:700;}#yiv8884958541 dd.yiv8884958541last p 
span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv8884958541 
dd.yiv8884958541last p span.yiv8884958541yshortcuts 
{margin-right:0;}#yiv8884958541 div.yiv8884958541attach-table div div a 
{text-decoration:none;}#yiv8884958541 div.yiv8884958541attach-table 
{width:400px;}#yiv8884958541 div.yiv8884958541file-title a, #yiv8884958541 
div.yiv8884958541file-title a:active, #yiv8884958541 
div.yiv8884958541file-title a:hover, #yiv8884958541 div.yiv8884958541file-title 
a:visited {text-decoration:none;}#yiv8884958541 div.yiv8884958541photo-title a, 
#yiv8884958541 div.yiv8884958541photo-title a:active, #yiv8884958541 
div.yiv8884958541photo-title a:hover, #yiv8884958541 
div.yiv8884958541photo-title a:visited {text-decoration:none;}#yiv8884958541 
div#yiv8884958541ygrp-mlmsg #yiv8884958541ygrp-msg p a 
span.yiv8884958541yshortcuts 
{font-family:Verdana;font-size:10px;font-weight:normal;}#yiv8884958541 
.yiv8884958541green {color:#628c2a;}#yiv8884958541 .yiv8884958541MsoNormal 
{margin:0 0 0 0;}#yiv8884958541 o {font-size:0;}#yiv8884958541 
#yiv8884958541photos div {float:left;width:72px;}#yiv8884958541 
#yiv8884958541photos div div {border:1px solid 
#666666;height:62px;overflow:hidden;width:62px;}#yiv8884958541 
#yiv8884958541photos div label 
{color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv8884958541
 #yiv8884958541reco-category {font-size:77%;}#yiv8884958541 
#yiv8884958541reco-desc {font-size:77%;}#yiv8884958541 .yiv8884958541replbq 
{margin:4px;}#yiv8884958541 #yiv8884958541ygrp-actbar div a:first-child 
{margin-right:2px;padding-right:5px;}#yiv8884958541 #yiv8884958541ygrp-mlmsg 
{font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv8884958541 
#yiv8884958541ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv8884958541 
#yiv8884958541ygrp-mlmsg select, #yiv8884958541 input, #yiv8884958541 textarea 
{font:99% Arial, Helvetica, clean, sans-serif;}#yiv8884958541 
#yiv8884958541ygrp-mlmsg pre, #yiv8884958541 code {font:115% 
monospace;}#yiv8884958541 #yiv8884958541ygrp-mlmsg * 
{line-height:1.22em;}#yiv8884958541 #yiv8884958541ygrp-mlmsg #yiv8884958541logo 
{padding-bottom:10px;}#yiv8884958541 #yiv8884958541ygrp-msg p a 
{font-family:Verdana;}#yiv8884958541 #yiv8884958541ygrp-msg 
p#yiv8884958541attach-count span {color:#1E66AE;font-weight:700;}#yiv8884958541 
#yiv8884958541ygrp-reco #yiv8884958541reco-head 
{color:#ff7900;font-weight:700;}#yiv8884958541 #yiv8884958541ygrp-reco 
{margin-bottom:20px;padding:0px;}#yiv8884958541 #yiv8884958541ygrp-sponsor 
#yiv8884958541ov li a {font-size:130%;text-decoration:none;}#yiv8884958541 
#yiv8884958541ygrp-sponsor #yiv8884958541ov li 
{font-size:77%;list-style-type:square;padding:6px 0;}#yiv8884958541 
#yiv8884958541ygrp-sponsor #yiv8884958541ov ul {margin:0;padding:0 0 0 
8px;}#yiv8884958541 #yiv8884958541ygrp-text 
{font-family:Georgia;}#yiv8884958541 #yiv8884958541ygrp-text p {margin:0 0 1em 
0;}#yiv8884958541 #yiv8884958541ygrp-text tt {font-size:120%;}#yiv8884958541 
#yiv8884958541ygrp-vital ul li:last-child {border-right:none 
!important;}#yiv8884958541 

   
  • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
    • ... 'Louis van Alphen' lo...@nucleo.co.za [firebird-support]
      • ... 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
        • ... 'Louis van Alphen' lo...@nucleo.co.za [firebird-support]
      • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
        • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
          • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
            • ... Ann Harrison aharri...@ibphoenix.com [firebird-support]
              • ... Svein Erling Tysvær svein.erling.tysv...@kreftregisteret.no [firebird-support]
              • ... 'Louis van Alphen' lo...@nucleo.co.za [firebird-support]
                • ... 'Louis van Alphen' lo...@nucleo.co.za [firebird-support]
                • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
                • ... Svein Erling Tysvær svein.erling.tysv...@kreftregisteret.no [firebird-support]
              • ... Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
    • ... Mark Rotteveel m...@lawinegevaar.nl [firebird-support]

Reply via email to