我的实际查询,如何在SQL数据库中进行选择查询?
我需要这样的东西SELECT * FROM IMOBI WHERE GOAL ==' Venda' AND TYPES ==' Residencial'
我的数据库:
export function getFilterTypeResidence() {
if (Firebase === null) return () => new Promise(resolve => resolve());
return dispatch => new Promise(resolve => FirebaseRef.child('imobi')
.orderByChild('types').equalTo('Residencial').once('value', (snapshot) => {
const realestate = snapshot.val() || {};
const filter = Object.values(realestate);
return resolve(dispatch({
type: 'GET_TYPE',
data: filter
}));
})).catch(e => console.log(e));
}