茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1730277 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
IMG_60D_00173.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

DB研討會 : [轉貼]MySQL Cross Server Select Query

發表者 討論內容
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15773
[轉貼]Can MySql 5.0 have a view of a table located on another server
Can MySql 5.0 have a view of a table located on another server

Can MySql 5.0 views use tables that are located on another server? What is the syntax for creating such a view?



Federated Tables: http://dev.mysql.com/doc/refman/5.0/en/federated-storage-engine.html
This allows a table to be remotely accessed as if the remote table was a local table. It has its limitations but seems to meet my needs.



Yes, you can create objects in one database that reference another database and even another host. The syntax to do so works something like this:
USE localhost.myDB;
SELECT * FROM host2.db.tableName;


原文出處:Can MySql 5.0 have a view of a table located on another server - Stack Overflow
前一個主題 | 下一個主題 | | | |

討論串




Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|