DB Tips
From Kolmisoft Wiki
Jump to navigationJump to search
How to find user by device ID
Change X to know device ID:
select users.* from users join devices on (users.id = devices.user_id) where devices.id = X;
Change X to know device ID:
select users.* from users join devices on (users.id = devices.user_id) where devices.id = X;