mongodb 數據庫like語句查詢

在學習mongodb時遇到查找類似字符串問題,下面是解決方法:mongodb 假如須要查找的字符串爲s,則能夠用db.tables.find({"name":/s/}),或者db.tables.find({"name":/^s/}) ,或者db.tables.find({"name":/s.*/}),或者db.tables.find({"name":/.s.*/})學習 下面就分析下這幾種查詢的對
相關文章
相關標籤/搜索