Basic script, boleh modify lagi untuk PK, nullable dll.
...
SELECT ' "' || COLUMN_NAME || '" ' || DATA_TYPE || ' (' || data_length || ' ' || decode(char_used,'B','BYTE') || ') , '
FROM user_tab_columns
WHERE table_name='TABLE_NAME'
;
error, issue, RnD, notes for my colleagues ... anything related with my job. A good programmer should be a good and fast reader. This log just to cut the costs of my RnD. Nothing personal :)
SELECT ' "' || COLUMN_NAME || '" ' || DATA_TYPE || ' (' || data_length || ' ' || decode(char_used,'B','BYTE') || ') , '
FROM user_tab_columns
WHERE table_name='TABLE_NAME'
;