[Tutor] Table Joins

Kent Johnson kent37 at tds.net
Wed Aug 22 19:05:05 CEST 2007


z machinez wrote:
> Hi All:
>  
> I have the following tables selected from a database:
>  
> a1
>  
> a2
>  
> each table are of the same column length, same col names. How do I 
> combine or concatenate these tables ? So, I would like to have
>  
> a3 = a1, a2 # combining all the rows into one formal table
>  
> Just not sure how to do that in Python.

Terry's ideas are good but it might be as simple as
a3 = a1 + a2
if you don't need to worry about duplicates.

Kent


More information about the Tutor mailing list