Getting the Field Names and Properties on a PeopleSoft Table

SELECT A.FIELDNAME, A.FIELDNUM, CASE WHEN b.fieldtype = '0' THEN 'Character' WHEN b.fieldtype = '1' THEN 'Long Character'
WHEN b.fieldtype = '2' THEN 'Number' WHEN b.fieldtype = '3' THEN 'Signed Number' WHEN b.fieldtype = '4' THEN 'Date'
WHEN b.fieldtype = '5' THEN 'Time' WHEN b.fieldtype = '6' THEN 'Date Time' END AS FIELD_TYPE,B.LENGTH,B.DESCRLONG
FROM PSRECFIELDDB A, PSDBFIELD B
WHERE RECNAME = 'VCHR_BANK_STG'
AND A.FIELDNAME = B.FIELDNAME
ORDER BY FIELDNUM;

Comments

Popular posts from this blog

PeopleSoft AP Matching Process Key Tables for troubleshooting purpose

How to Set a Default Password in PeopleSoft

PS Query Security Tree