This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Usage: ./redis-movekeys.sh [-h host] [-p port] [-n src] [-m dest] pattern | |
| # | |
| # Move keys matching pattern from the src Redis database to the | |
| # dest Redis database. | |
| set -e | |
| HOST="localhost" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT f.Name, ANY_VALUE(COALESCE(p.Phone, '-')) AS Phone FROM Firms f | |
| LEFT JOIN Phones p ON p.FirmID = f.ID | |
| GROUP BY f.ID |