Write a postgre SQL statement to change the name of the column state_province to state, keeping the same size and data type and size
- Postgre SQL
- 2021-09-29
- mhanasmh00489829403
الأجوبة
ALTER TABLE locations
DROP state_province,
ADD state varchar(25);
Output:
Now see the structure of the table locations after alteration.
postgres=# \d locations
Column | Type | Modifiers
----------------+-----------------------+-----------
location_id | numeric(4,0) |
street_address | character varying(40) |
postal_code | character varying(12) |
country_id | character varying(2) |
region_id | text |
state | character varying(25) |أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
معلومات ذات صلة