Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

get specific column in mongodb

SELECT id,
       user_id,
       status
FROM people


-- mongo 
db.people.find(
    { },
    { user_id: 1, status: 1 }
)
Source by www.mongodb.com #
 
PREVIOUS NEXT
Tagged: #specific #column #mongodb
ADD COMMENT
Topic
Name
1+2 =