How do I get datatype of specific field from table in postgres ? For example I have the following table, student_details ( stu_id integer, stu_name varcha
Try this request :
SELECT column_name, data_type FROM information_schema.columns WHERE table_name = 'YOUR_TABLE' AND column_name = 'YOUR_FIELD';