2016-11-14 39 views

回答

0

望着我看到這個文件:

Users = db.meteorCollection("users","usersCollection",criteria); 
//criteria object offers you executing select queries to the mysql database. 
//Use it if you need to return only specific columns or joined tables. 

它不會在解釋再往前走,但你可能只是把標準定製SQL,如

"SELECT * FROM TABLE WHERE ..." 

我會嘗試它,看看你得到什麼。

否則用這個包,看起來更接近反正到SQL - https://github.com/numtel/meteor-mysql

+0

謝謝,我會檢查。請問你能告訴我如何在numtel:mysql包中獲得發佈計數?或者我該如何使用tmeasday:在numtel包中發佈計數? –

+0

害怕我不知道,你必須玩它,看看 – Mikkel

+0

謝謝。 :)一直在玩它,但還沒有成功。順便說一句我使用vlasky:mysql版本,它使用numtel:mysql但訂閱方法。 –