You are here: Re: sql+php help « PHP SQL « IT news, forums, messages
Re: sql+php help

Posted by Mel on 07/11/06 14:12

On 2006-07-11 21:58:26 +1000, Jerry Stuckle <jstucklex@attglobal.net> said:

> Dejan wrote:
>> Yeah right. I have tried playing with multidimensional arrays, buth with my
>> knowlege :))
>>
>> Why cann't i use this with what sql query?
>>
>>
>>
>>> You query table1 and table2 and store those in two multi dimensional
>>
>> arrays,
>>
>>> then you create your third multi dimensional array into where you store
>>
>> the
>>
>>> joint rows of table1 and table2.
>>>
>>>
>>> //Aho
>>
>>
>>
>
> Unless something has changed, you can't query across databases on
> different servers.
>
> Also, if you ask a question in a PHP group expect to get a PHP
> response. If you want a MySQL response, try a MySQL group such as
> comp.databases.mysql.

I don't know if it's valid SQL (or just T-SQL), but:
MSSQL supports connecting to multiple servers in a single statement. Ex:
select tbl1.*, tbl2.*
from localhost.mylocaldatabase.dbo.table_one as tbl1
join otherhost.myremotedatabase.dbowner.table_two as tbl2 on tbl1.id = tbl2.fk

 

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

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