Created
May 3, 2021 15:01
-
-
Save viniciusmelocodes/31e6395b43cd7fa53aa563cba607debe to your computer and use it in GitHub Desktop.
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
SELECT | |
R.RDB$RELATION_NAME, | |
R.RDB$FIELD_NAME, | |
R.RDB$FIELD_SOURCE, | |
F.RDB$FIELD_LENGTH, | |
F.RDB$FIELD_TYPE, | |
F.RDB$FIELD_SCALE, | |
F.RDB$FIELD_SUB_TYPE | |
FROM RDB$RELATION_FIELDS R | |
JOIN RDB$FIELDS F ON | |
F.RDB$FIELD_NAME = R.RDB$FIELD_SOURCE | |
JOIN RDB$RELATIONS RL ON | |
RL.RDB$RELATION_NAME = R.RDB$RELATION_NAME | |
WHERE | |
COALESCE(R.RDB$SYSTEM_FLAG, 0) = 0 AND COALESCE(RL.RDB$SYSTEM_FLAG, 0) = 0 AND RL.RDB$VIEW_BLR IS NULL | |
AND R.RDB$FIELD_NAME LIKE '%PRAE_%' | |
ORDER BY | |
R.RDB$RELATION_NAME, | |
R.RDB$FIELD_POSITION; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment