I have one Business(Database) where there is 20 tables and I need to fetch all the column name with the data type and table constraint(PK and FK ) only in both SQL and Oracle server and save it in a csv for analysis . SQL Server :
SELECT TABLE_CATALOG,TABLE_SCHEMA,TABLE_NAME, COLUMN_NAME, DATA_TYPE
FROM INFORMATION_SCHEMA.COLUMNS
Oracle :
describe <table_name>
Not sure how to fetch it once for the database fetching all table in one go instead of putting one table at a time