Question on User Defined-SQL

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Question on User Defined-SQL

Post by admin »

Hi All,

This is again a question on User defined SQL in an
OCIstage.

An example of the same:

"INSERT INTO TableX
(COL1,COL2,COL3,COL4) VALUES
(:1,:2,:3,:4)"

My Question is : Instead of the position specific bind variables in the VALUES clause, can we use named variables ? e.g.

"INSERT INTO TableX
(COL1,COL2,COL3,COL4) VALUES (:SrcCol1,:SrcCol2,:SrcCol3,:SrcCol4)"

Thanks,
Bibhu


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals. http://personals.yahoo.com
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post by admin »

Now thats an easy question. The simple answer is "no". (Unless someone added this without telling me).

-----Original Message-----
From: Bibhu C [mailto:bibhuds@yahoo.com]
Sent: Wednesday, 17 October 2001 8:52 AM
To: datastage-users@oliver.com
Subject: Question on User Defined-SQL

Hi All,

This is again a question on User defined SQL in an
OCIstage.

An example of the same:

"INSERT INTO TableX
(COL1,COL2,COL3,COL4) VALUES
(:1,:2,:3,:4)"

My Question is : Instead of the position specific bind variables in the VALUES clause, can we use named variables ? e.g.

"INSERT INTO TableX
(COL1,COL2,COL3,COL4) VALUES (:SrcCol1,:SrcCol2,:SrcCol3,:SrcCol4)"

Thanks,
Bibhu


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals. http://personals.yahoo.com
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post by admin »

David,

Many thanks ! Any thought on why they didnt want to do
have this lil feature ?

Regards
Bibhu

--- David Barham wrote:
> Now thats an easy question. The simple answer is
> "no". (Unless someone
> added this without telling me).
>
> -----Original Message-----
> From: Bibhu C [mailto:bibhuds@yahoo.com]
> Sent: Wednesday, 17 October 2001 8:52 AM
> To: datastage-users@oliver.com
> Subject: Question on User Defined-SQL
>
> Hi All,
>
> This is again a question on User defined SQL in an
> OCIstage.
>
> An example of the same:
>
> "INSERT INTO TableX
> (COL1,COL2,COL3,COL4) VALUES
> (:1,:2,:3,:4)"
>
> My Question is : Instead of the position specific
> bind
> variables in the VALUES clause, can we use named
> variables ? e.g.
>
> "INSERT INTO TableX
> (COL1,COL2,COL3,COL4) VALUES (:SrcCol1,:SrcCol2,:SrcCol3,:SrcCol4)"
>
> Thanks,
> Bibhu



__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals. http://personals.yahoo.com
Locked