This file contains 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
--- Source: http://solaimurugan.blogspot.ru/2010/10/list-out-all-forien-key-constraints.html | |
SELECT | |
tc.constraint_name, | |
tc.constraint_type, | |
tc.table_name, | |
kcu.column_name, | |
tc.is_deferrable, | |
tc.initially_deferred, | |
rc.match_option AS match_type, |
This file contains 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
# Caveman | |
def seconds_to_extended(seconds) | |
hours = 0 | |
minutes = 0 | |
while seconds >= 3600 | |
hours += 1 | |
seconds -= 3600 | |
end | |
while seconds >= 60 | |
minutes += 1 |