dimanche 29 décembre 2019

Creating a subquery using laravel eloquent

My raw query working fine. but after converting laravel eloquent it's not working

SELECT
    key_vals.`key`,
    key_vals.`value`
FROM
    key_vals
WHERE TIMESTAMPDIFF(MINUTE,
        key_vals.`last_store_time`,
        now()) < (SELECT ttl from ttls) 


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2tbUqmB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire