dbTalk Databases Forums  

how to get result with row name with join(2 cols same name)?

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss how to get result with row name with join(2 cols same name)? in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default how to get result with row name with join(2 cols same name)? - 08-07-2006 , 07:11 PM






------=_Part_146235_22880439.1154995779115
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi, I just ran a query something like this

select * from tab1, tab2 where tab1.f1 = tab2.f1 and tab1.f2 = X;

here the output has 2 f1's

I havent written the code to see what happens, but was wondering what will
happen if we do

row["f1"]?

Thanks
Ankur

------=_Part_146235_22880439.1154995779115--

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: how to get result with row name with join(2 cols same name)? - 08-08-2006 , 02:02 PM






Ankur G35 Saxena wrote:
Quote:
I havent written the code to see what happens,
Were you expecting someone to do it for you?

Quote:
but was wondering what will
happen if we do

row["f1"]?
Good question. Let me know when you find out. And let me know how
you'd like it to behave instead, because I think you won't be happy.
I'll add it to the Wishlist if you come up with a good enough idea.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.