“MongoDB in SQL konvertieren” Code-Antworten

SQL zum MongoDB Query Converter

The simple anwser? No.

The slightly more complex anwser is some people have had luck translating more complex SQL to Mapreduce functions ...

http://rickosborne.org/blog/index.php/2010/02/08/playing-around-with-mongodb-and-mapreduce-functions/

http://rickosborne.org/blog/index.php/2010/02/19/yes-virginia-thats-automated-sql-to-mongodb-mapreduce/

However, that said ... generally speaking you might as well learn mapreduce properly because if the data is in MongoDB already ... you'll really need to know how to properly query MongoDB to get anything meaningful done!

MongoDB has wonderful and helpful docs http://www.mongodb.org/display/DOCS/Advanced+Queries

As well as an easy to use online tutorial: http://try.mongodb.org/
Santino

MongoDB in SQL konvertieren

db.Actors.aggregate([
{ $match: { name: "McGregor, Ewan" }},
{
$lookup:{
from:"Moviestoactors",
localField:"actorid",
foreignField:"movieid",
as:"data"
}},
    { $unwind: "$data" },
    { $count: "Total movies"}
])
ankitha cherian

Ähnliche Antworten wie “MongoDB in SQL konvertieren”

Fragen ähnlich wie “MongoDB in SQL konvertieren”

Weitere verwandte Antworten zu “MongoDB in SQL konvertieren” auf Sql

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen