Currently, I am utilizing the XDEVAPI and attempting to incorporate the or(||) statement in JavaScript. However, it appears to malfunction after 1 or/(||) statements have been included. I need to fetch data from the database based on 5 distinct statuses:
.select(['customer_name',
'account_status',
])
.where('customer_name like :customer_name && account_status like :account_status || account_status like :account_status || account_status like :account_status')
.bind('customer_name', customer_name)
.bind('account_status', 'Some_Status_1')
.bind('account_status','Some_Status_2')
.bind('account_status', 'Some_Status_3')
.execute()
Can I utilize REGEXP 'Some_Status_1'|Some_Status_2' etc?
If so, what would be the correct syntax to achieve this?
Alternatively, is there another approach that I might not be aware of?
I appreciate any guidance you can provide.